# Download latest kernel and install: wget http://fox-exe.ru/WDMyCloud/WDMyCloud-Gen2/Debian/Dev/Debian-kernel-bin_4.15.0-rc6.tar.gz tar xvf Debian-kernel-bin_4.15.0-rc6.tar.gz -C / # Cleanup: # Remove old network controller records: rm /etc/udev/rules.d/70-persistent-net.rules # Remove all "ipv6" records (lines of code) from /etc/network/interfaces sed '/ipv6/d' /etc/network/interfaces -i sed '/inet6/d' /etc/network/interfaces -i # Reboot sync && reboot # Remove old kernel modules: rm -r /lib/modules/3.10.70+ ############################### # OS upgrade (Wheezy or Jessie to latest stable release (Stretch)) # Replace apt repository: cat << EOF > /etc/apt/sources.list deb http://deb.debian.org/debian stable main contrib non-free deb-src http://deb.debian.org/debian stable main contrib non-free deb http://deb.debian.org/debian stable-updates main contrib non-free deb-src http://deb.debian.org/debian stable-updates main contrib non-free deb http://security.debian.org/ stable/updates main contrib non-free deb-src http://security.debian.org/ stable/updates main contrib non-free EOF # Do upgrade packages/software/system: apt update apt upgrade apt dist-upgrade