Step to restart network card eth0 without reboot

This commit is contained in:
2020-08-20 22:40:00 +02:00
parent c984905550
commit 74ec53ae18

View File

@@ -229,7 +229,11 @@ startScript="/etc/rc.local"
ledPowerBright="/sys/class/leds/led1/brightness"
ledOffCmd="sudo sh -c 'echo 0 > ${ledPowerBright}'"
step_26_info() { echo "Restart network without reboot"; }
step_26_alias() { ALIAS="netrestart"; }
step_26() {
exep "sudo ip link set eth0 down && sudo ip link set eth0 up"
}
read_sd_dev() {
local partExt=""
if [ ! -z "$1" ] ; then