[git commit] examples/var_service: use "exec sleep 5" instead of "{ sleep 5; exit; }"

Denys Vlasenko vda.linux at googlemail.com
Sun Apr 21 12:30:19 UTC 2019


commit: https://git.busybox.net/busybox/commit/?id=1e9a4f56f574471707244db9f7038ad0581dec16
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 examples/var_service/dhcp_if/run       | 2 +-
 examples/var_service/dhcpd_if/run      | 2 +-
 examples/var_service/ifplugd_if/run    | 2 +-
 examples/var_service/supplicant_if/run | 2 +-
 examples/var_service/zcip_if/run       | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/examples/var_service/dhcp_if/run b/examples/var_service/dhcp_if/run
index d8f343586..882f008d6 100755
--- a/examples/var_service/dhcp_if/run
+++ b/examples/var_service/dhcp_if/run
@@ -8,7 +8,7 @@ pwd="$PWD"
 if="${PWD##*/dhcp_}"
 
 echo "* Upping iface $if"
-ip link set dev "$if" up || { sleep 5; exit; }
+ip link set dev "$if" up || exec sleep 5
 
 echo "* Starting udhcpc on $if [$$]"
 exec \
diff --git a/examples/var_service/dhcpd_if/run b/examples/var_service/dhcpd_if/run
index e3d1b00f4..82ac08aa4 100755
--- a/examples/var_service/dhcpd_if/run
+++ b/examples/var_service/dhcpd_if/run
@@ -8,7 +8,7 @@ pwd="$PWD"
 if="${PWD##*/dhcpd_}"
 
 echo "* Upping iface $if"
-ip link set dev $if up || { sleep 5; exit; }
+ip link set dev $if up || exec sleep 5
 
 >>udhcpd.leases
 sed 's/^interface.*$/interface '"$if/" -i udhcpd.conf
diff --git a/examples/var_service/ifplugd_if/run b/examples/var_service/ifplugd_if/run
index e7816619d..cfddfec06 100755
--- a/examples/var_service/ifplugd_if/run
+++ b/examples/var_service/ifplugd_if/run
@@ -9,7 +9,7 @@ pwd="$PWD"
 if="${PWD##*/ifplugd_}"
 
 echo "* Upping iface $if"
-ip link set dev "$if" up || { sleep 5; exit; }
+ip link set dev "$if" up || exec sleep 5
 
 echo "* Starting ifplugd on $if [$$]"
 exec \
diff --git a/examples/var_service/supplicant_if/run b/examples/var_service/supplicant_if/run
index bc16fb606..5c813b07f 100755
--- a/examples/var_service/supplicant_if/run
+++ b/examples/var_service/supplicant_if/run
@@ -9,7 +9,7 @@ if="${PWD##*/dhcp_}"
 
 echo "* Upping iface $if"
 # "or sleep" idiom prevents rapid respawning if iface does not exist
-ip link set dev "$if" up || { sleep 5; exit; }
+ip link set dev "$if" up || exec sleep 5
 
 ##echo "* Powersave disable on $if"
 ##iw dev "$if" set power_save off
diff --git a/examples/var_service/zcip_if/run b/examples/var_service/zcip_if/run
index 699823246..69f8b9bae 100755
--- a/examples/var_service/zcip_if/run
+++ b/examples/var_service/zcip_if/run
@@ -8,7 +8,7 @@ pwd="$PWD"
 if="${PWD##*/zcip_}"
 
 echo "* Upping iface $if"
-ip link set dev "$if" up || { sleep 5; exit; }
+ip link set dev "$if" up || exec sleep 5
 
 echo "* Starting zcip on $if [$$]"
 exec \


More information about the busybox-cvs mailing list