diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-04-21 14:30:19 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-04-21 14:30:19 +0200 |
commit | 1e9a4f56f574471707244db9f7038ad0581dec16 (patch) | |
tree | e5899d6210542ceaa819b5173ba54a2865fcae4f | |
parent | e49a572b529dc7dcfb052c679074b9b87577e388 (diff) | |
download | busybox-w32-1e9a4f56f574471707244db9f7038ad0581dec16.tar.gz busybox-w32-1e9a4f56f574471707244db9f7038ad0581dec16.tar.bz2 busybox-w32-1e9a4f56f574471707244db9f7038ad0581dec16.zip |
examples/var_service: use "exec sleep 5" instead of "{ sleep 5; exit; }"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | examples/var_service/dhcp_if/run | 2 | ||||
-rwxr-xr-x | examples/var_service/dhcpd_if/run | 2 | ||||
-rwxr-xr-x | examples/var_service/ifplugd_if/run | 2 | ||||
-rwxr-xr-x | examples/var_service/supplicant_if/run | 2 | ||||
-rwxr-xr-x | 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" | |||
8 | if="${PWD##*/dhcp_}" | 8 | if="${PWD##*/dhcp_}" |
9 | 9 | ||
10 | echo "* Upping iface $if" | 10 | echo "* Upping iface $if" |
11 | ip link set dev "$if" up || { sleep 5; exit; } | 11 | ip link set dev "$if" up || exec sleep 5 |
12 | 12 | ||
13 | echo "* Starting udhcpc on $if [$$]" | 13 | echo "* Starting udhcpc on $if [$$]" |
14 | exec \ | 14 | 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" | |||
8 | if="${PWD##*/dhcpd_}" | 8 | if="${PWD##*/dhcpd_}" |
9 | 9 | ||
10 | echo "* Upping iface $if" | 10 | echo "* Upping iface $if" |
11 | ip link set dev $if up || { sleep 5; exit; } | 11 | ip link set dev $if up || exec sleep 5 |
12 | 12 | ||
13 | >>udhcpd.leases | 13 | >>udhcpd.leases |
14 | sed 's/^interface.*$/interface '"$if/" -i udhcpd.conf | 14 | 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" | |||
9 | if="${PWD##*/ifplugd_}" | 9 | if="${PWD##*/ifplugd_}" |
10 | 10 | ||
11 | echo "* Upping iface $if" | 11 | echo "* Upping iface $if" |
12 | ip link set dev "$if" up || { sleep 5; exit; } | 12 | ip link set dev "$if" up || exec sleep 5 |
13 | 13 | ||
14 | echo "* Starting ifplugd on $if [$$]" | 14 | echo "* Starting ifplugd on $if [$$]" |
15 | exec \ | 15 | 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_}" | |||
9 | 9 | ||
10 | echo "* Upping iface $if" | 10 | echo "* Upping iface $if" |
11 | # "or sleep" idiom prevents rapid respawning if iface does not exist | 11 | # "or sleep" idiom prevents rapid respawning if iface does not exist |
12 | ip link set dev "$if" up || { sleep 5; exit; } | 12 | ip link set dev "$if" up || exec sleep 5 |
13 | 13 | ||
14 | ##echo "* Powersave disable on $if" | 14 | ##echo "* Powersave disable on $if" |
15 | ##iw dev "$if" set power_save off | 15 | ##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" | |||
8 | if="${PWD##*/zcip_}" | 8 | if="${PWD##*/zcip_}" |
9 | 9 | ||
10 | echo "* Upping iface $if" | 10 | echo "* Upping iface $if" |
11 | ip link set dev "$if" up || { sleep 5; exit; } | 11 | ip link set dev "$if" up || exec sleep 5 |
12 | 12 | ||
13 | echo "* Starting zcip on $if [$$]" | 13 | echo "* Starting zcip on $if [$$]" |
14 | exec \ | 14 | exec \ |