Skip to content

Instantly share code, notes, and snippets.

@GonzaloAlvarez
Last active December 28, 2016 05:39
Show Gist options
  • Save GonzaloAlvarez/ec2503ef09580aefc1fbef6a2e4446b0 to your computer and use it in GitHub Desktop.
Save GonzaloAlvarez/ec2503ef09580aefc1fbef6a2e4446b0 to your computer and use it in GitHub Desktop.

Update the package list for the Synology DS216j

Execute the following code:

sudo -i
wget -O - https://gist.github.com/GonzaloAlvarez/ec2503ef09580aefc1fbef6a2e4446b0/raw/3a09d237f4591619c279ea9a8ebf4af0ea72e320/synology.sh | sh

These steps are taken from: https://gist.github.com/ffeldhaus/226f2c5743a7f631806d

Apparently, there are two options, use optware-ng as with the code above for synology.sh, and use entware-ng. There seems to be little to no difference between the two, but a matter of a specific package here or there.

mkdir /volume1/@optware
cd /volume1/@optware
wget -O - http://ipkg.nslu2-linux.org/optware-ng/bootstrap/buildroot-armeabihf-bootstrap.sh | sh
mv /opt/* /volume1/@optware/
rm -r /opt
ln -s /volume1/@optware /opt
echo "/bin/ln -sf /volume1/@optware /opt" >> /etc/rc.local
echo "/bin/sed -i 's|PATH=/sbin|PATH=/opt/bin:/opt/sbin:/sbin|' /etc/profile" >> /etc/rc.local
sed -i 's|PATH=/sbin|PATH=/opt/bin:/opt/sbin:/sbin|' /etc/profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment