Step to restart network card eth0 without reboot
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user