From 74ec53ae18467410a331c08e0bf8c1712c11abd2 Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Thu, 20 Aug 2020 22:40:00 +0200 Subject: [PATCH] Step to restart network card eth0 without reboot --- seqs/raspberry.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/seqs/raspberry.sh b/seqs/raspberry.sh index 40d6631..205b488 100755 --- a/seqs/raspberry.sh +++ b/seqs/raspberry.sh @@ -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