aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-04-17 12:02:10 +0100
committerRon Yorston <rmy@pobox.com>2019-04-17 12:02:10 +0100
commite4bc2cb29c5465cbec2dec1ba3b325139007d03a (patch)
tree3556d0a31ca4f75807345aef3f8a377bebf725f7 /examples
parent9752b1d082e6bdb51f8fbec5e751087a687c0062 (diff)
parent1d37186fe2361f80c821e334cc61f41e2f4eeb72 (diff)
downloadbusybox-w32-e4bc2cb29c5465cbec2dec1ba3b325139007d03a.tar.gz
busybox-w32-e4bc2cb29c5465cbec2dec1ba3b325139007d03a.tar.bz2
busybox-w32-e4bc2cb29c5465cbec2dec1ba3b325139007d03a.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/udhcp/simple.script4
-rwxr-xr-xexamples/var_service/dhcp_if/run4
-rwxr-xr-xexamples/var_service/dhcpd_if/run4
-rwxr-xr-xexamples/var_service/ifplugd_if/run2
-rwxr-xr-xexamples/var_service/supplicant_if/run2
-rwxr-xr-xexamples/var_service/zcip_if/run4
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"
8if="${PWD##*/dhcp_}" 8if="${PWD##*/dhcp_}"
9 9
10echo "* Upping iface $if" 10echo "* Upping iface $if"
11ip link set dev "$if" up 11ip link set dev "$if" up || { sleep 5; exit; }
12 12
13echo "* Starting udhcpc" 13echo "* Starting udhcpc on $if [$$]"
14exec \ 14exec \
15env - PATH="$PATH" \ 15env - PATH="$PATH" \
16softlimit \ 16softlimit \
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"
8if="${PWD##*/dhcpd_}" 8if="${PWD##*/dhcpd_}"
9 9
10echo "* Upping iface $if" 10echo "* Upping iface $if"
11ip link set dev $if up 11ip link set dev $if up || { sleep 5; exit; }
12 12
13>>udhcpd.leases 13>>udhcpd.leases
14sed 's/^interface.*$/interface '"$if/" -i udhcpd.conf 14sed 's/^interface.*$/interface '"$if/" -i udhcpd.conf
15 15
16echo "* Starting udhcpd" 16echo "* Starting udhcpd on $if [$$]"
17exec \ 17exec \
18env - PATH="$PATH" \ 18env - PATH="$PATH" \
19softlimit \ 19softlimit \
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"
9if="${PWD##*/ifplugd_}" 9if="${PWD##*/ifplugd_}"
10 10
11echo "* Upping iface $if" 11echo "* Upping iface $if"
12ip link set dev "$if" up 12ip link set dev "$if" up || { sleep 5; exit; }
13 13
14echo "* Starting ifplugd on $if [$$]" 14echo "* Starting ifplugd on $if [$$]"
15exec \ 15exec \
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
17echo "* Starting wpa_supplicant" 17echo "* Starting wpa_supplicant on $if [$$]"
18exec \ 18exec \
19env - PATH="$PATH" \ 19env - PATH="$PATH" \
20softlimit \ 20softlimit \
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"
8if="${PWD##*/zcip_}" 8if="${PWD##*/zcip_}"
9 9
10echo "* Upping iface $if" 10echo "* Upping iface $if"
11ip link set dev "$if" up 11ip link set dev "$if" up || { sleep 5; exit; }
12 12
13echo "* Starting zcip" 13echo "* Starting zcip on $if [$$]"
14exec \ 14exec \
15env - PATH="$PATH" \ 15env - PATH="$PATH" \
16softlimit \ 16softlimit \