This script is linked to this repository : https://github.com/bb-qq/r8152 Thanks to its author for the driver.
Tested on my DS920+ with:
- DSM 7.1.1-42962 Update 5
- DSM 7.1.1-42962 Update 6
- DSM 7.2-64570
- DSM 7.2-64570 Update 1
Usage: driver-pkgctl-r8152-restart-reload.sh {boot|task|manual} [--notify]
{boot|task|manual} : Launch mode, mandatory
boot set script to a launch after boot
task set script to a task manager schedule launch
manual set script to a manual launch (from CLI)
-n, --notify [Optionnal, always send gotify notification]
-r, --reactivate_all_down_ethX [Optional, and do only reactivation of all ethX interfaces it find with ip link]
In order to use the script automatically, I suggest to create 2 tasks in DSM tasks manager:
-
One launched at every boot/reboot of the NAS: Use this command :
bash driver-pkgctl-r8152-restart-reload.sh boot
-
Another launched every 30 minutes, in order to ensure the driver is working fine. Use this command :
bash driver-pkgctl-r8152-restart-reload.sh task
If you want to launch it manually from the terminal, use :
bash driver-pkgctl-r8152-restart-reload.sh manual
You can also force gotify notifications with -n
or --notify
:
bash driver-pkgctl-r8152-restart-reload.sh manual -n
If you want to ractivate all your deactivated interface, use:
bash driver-pkgctl-r8152-restart-reload.sh manual --reactivate_all_down_ethX