diff options
author | Ron Yorston <rmy@pobox.com> | 2019-04-17 12:02:10 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-04-17 12:02:10 +0100 |
commit | e4bc2cb29c5465cbec2dec1ba3b325139007d03a (patch) | |
tree | 3556d0a31ca4f75807345aef3f8a377bebf725f7 /examples | |
parent | 9752b1d082e6bdb51f8fbec5e751087a687c0062 (diff) | |
parent | 1d37186fe2361f80c821e334cc61f41e2f4eeb72 (diff) | |
download | busybox-w32-e4bc2cb29c5465cbec2dec1ba3b325139007d03a.tar.gz busybox-w32-e4bc2cb29c5465cbec2dec1ba3b325139007d03a.tar.bz2 busybox-w32-e4bc2cb29c5465cbec2dec1ba3b325139007d03a.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/udhcp/simple.script | 4 | ||||
-rwxr-xr-x | examples/var_service/dhcp_if/run | 4 | ||||
-rwxr-xr-x | examples/var_service/dhcpd_if/run | 4 | ||||
-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 | 4 |
6 files changed, 12 insertions, 8 deletions
diff --git a/examples/udhcp/simple.script b/examples/udhcp/simple.script index 44aa46ece..53974e6d6 100755 --- a/examples/udhcp/simple.script +++ b/examples/udhcp/simple.script | |||
@@ -55,6 +55,10 @@ case "$1" in | |||
55 | echo "Recreating $RESOLV_CONF" | 55 | echo "Recreating $RESOLV_CONF" |
56 | # If the file is a symlink somewhere (like /etc/resolv.conf | 56 | # If the file is a symlink somewhere (like /etc/resolv.conf |
57 | # pointing to /run/resolv.conf), make sure things work. | 57 | # pointing to /run/resolv.conf), make sure things work. |
58 | if test -L "$RESOLV_CONF"; then | ||
59 | # If it's a dangling symlink, try to create the target. | ||
60 | test -e "$RESOLV_CONF" || touch "$RESOLV_CONF" | ||
61 | fi | ||
58 | realconf=$(readlink -f "$RESOLV_CONF" 2>/dev/null || echo "$RESOLV_CONF") | 62 | realconf=$(readlink -f "$RESOLV_CONF" 2>/dev/null || echo "$RESOLV_CONF") |
59 | tmpfile="$realconf-$$" | 63 | tmpfile="$realconf-$$" |
60 | > "$tmpfile" | 64 | > "$tmpfile" |
diff --git a/examples/var_service/dhcp_if/run b/examples/var_service/dhcp_if/run index aec79e027..d8f343586 100755 --- a/examples/var_service/dhcp_if/run +++ b/examples/var_service/dhcp_if/run | |||
@@ -8,9 +8,9 @@ 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 | 11 | ip link set dev "$if" up || { sleep 5; exit; } |
12 | 12 | ||
13 | echo "* Starting udhcpc" | 13 | echo "* Starting udhcpc on $if [$$]" |
14 | exec \ | 14 | exec \ |
15 | env - PATH="$PATH" \ | 15 | env - PATH="$PATH" \ |
16 | softlimit \ | 16 | softlimit \ |
diff --git a/examples/var_service/dhcpd_if/run b/examples/var_service/dhcpd_if/run index a603bdc71..e3d1b00f4 100755 --- a/examples/var_service/dhcpd_if/run +++ b/examples/var_service/dhcpd_if/run | |||
@@ -8,12 +8,12 @@ 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 | 11 | ip link set dev $if up || { sleep 5; exit; } |
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 |
15 | 15 | ||
16 | echo "* Starting udhcpd" | 16 | echo "* Starting udhcpd on $if [$$]" |
17 | exec \ | 17 | exec \ |
18 | env - PATH="$PATH" \ | 18 | env - PATH="$PATH" \ |
19 | softlimit \ | 19 | softlimit \ |
diff --git a/examples/var_service/ifplugd_if/run b/examples/var_service/ifplugd_if/run index 5c662f298..e7816619d 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 | 12 | ip link set dev "$if" up || { sleep 5; exit; } |
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 279d18af5..bc16fb606 100755 --- a/examples/var_service/supplicant_if/run +++ b/examples/var_service/supplicant_if/run | |||
@@ -14,7 +14,7 @@ ip link set dev "$if" up || { sleep 5; exit; } | |||
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 |
16 | 16 | ||
17 | echo "* Starting wpa_supplicant" | 17 | echo "* Starting wpa_supplicant on $if [$$]" |
18 | exec \ | 18 | exec \ |
19 | env - PATH="$PATH" \ | 19 | env - PATH="$PATH" \ |
20 | softlimit \ | 20 | softlimit \ |
diff --git a/examples/var_service/zcip_if/run b/examples/var_service/zcip_if/run index 94a875465..699823246 100755 --- a/examples/var_service/zcip_if/run +++ b/examples/var_service/zcip_if/run | |||
@@ -8,9 +8,9 @@ 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 | 11 | ip link set dev "$if" up || { sleep 5; exit; } |
12 | 12 | ||
13 | echo "* Starting zcip" | 13 | echo "* Starting zcip on $if [$$]" |
14 | exec \ | 14 | exec \ |
15 | env - PATH="$PATH" \ | 15 | env - PATH="$PATH" \ |
16 | softlimit \ | 16 | softlimit \ |