aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/shutdown-1.0/script/stop_storage2
-rw-r--r--examples/udhcp/udhcpd.conf9
-rwxr-xr-xexamples/var_service/dhcp_if/run2
-rwxr-xr-xexamples/var_service/dhcpd_if/run2
-rwxr-xr-xexamples/var_service/ifplugd_if/run2
-rwxr-xr-xexamples/var_service/supplicant_if/run2
-rwxr-xr-xexamples/var_service/zcip_if/run2
7 files changed, 13 insertions, 8 deletions
diff --git a/examples/shutdown-1.0/script/stop_storage b/examples/shutdown-1.0/script/stop_storage
index 1be5f735b..50f3b4dd2 100755
--- a/examples/shutdown-1.0/script/stop_storage
+++ b/examples/shutdown-1.0/script/stop_storage
@@ -4,7 +4,7 @@
4# Repeat. 4# Repeat.
5 5
6umountcnt=2 6umountcnt=2
7writeout=0 # increase if your kernel doesn ot guarantee writes to complete 7writeout=0 # increase if your kernel does not guarantee writes to complete
8 8
9# No /usr - we are expecting all binaries to be accessible 9# No /usr - we are expecting all binaries to be accessible
10# from root fs alone 10# from root fs alone
diff --git a/examples/udhcp/udhcpd.conf b/examples/udhcp/udhcpd.conf
index bb8774e08..df1258aaf 100644
--- a/examples/udhcp/udhcpd.conf
+++ b/examples/udhcp/udhcpd.conf
@@ -44,7 +44,7 @@ interface eth0
44#notify_file # default: no script 44#notify_file # default: no script
45#notify_file dumpleases # useful for debugging 45#notify_file dumpleases # useful for debugging
46 46
47# The following are bootp specific options 47# The following are BOOTP specific options
48# next server to use in bootstrap 48# next server to use in bootstrap
49#siaddr 192.168.0.22 # default: 0.0.0.0 (none) 49#siaddr 192.168.0.22 # default: 0.0.0.0 (none)
50# tftp server name 50# tftp server name
@@ -52,9 +52,14 @@ interface eth0
52# tftp file to download (e.g. kernel image) 52# tftp file to download (e.g. kernel image)
53#boot_file /var/nfs_root # default: none 53#boot_file /var/nfs_root # default: none
54 54
55# NOTE: "boot_file FILE" and "opt bootfile FILE" are conceptually the same,
56# but "boot_file" goes into BOOTP-defined fixed-size field in the packet,
57# whereas "opt bootfile" goes into DHCP option 0x43.
58# Same for "sname HOST" and "opt tftp HOST".
59
55# Static leases map 60# Static leases map
56#static_lease 00:60:08:11:CE:4E 192.168.0.54 61#static_lease 00:60:08:11:CE:4E 192.168.0.54
57#static_lease 00:60:08:11:CE:3E 192.168.0.44 62#static_lease 00:60:08:11:CE:3E 192.168.0.44 optional_hostname
58 63
59# The remainder of options are DHCP options and can be specified with the 64# The remainder of options are DHCP options and can be specified with the
60# keyword 'opt' or 'option'. If an option can take multiple items, such 65# keyword 'opt' or 'option'. If an option can take multiple items, such
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"
8if="${PWD##*/dhcp_}" 8if="${PWD##*/dhcp_}"
9 9
10echo "* Upping iface $if" 10echo "* Upping iface $if"
11ip link set dev "$if" up || { sleep 5; exit; } 11ip link set dev "$if" up || exec sleep 5
12 12
13echo "* Starting udhcpc on $if [$$]" 13echo "* Starting udhcpc on $if [$$]"
14exec \ 14exec \
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"
8if="${PWD##*/dhcpd_}" 8if="${PWD##*/dhcpd_}"
9 9
10echo "* Upping iface $if" 10echo "* Upping iface $if"
11ip link set dev $if up || { sleep 5; exit; } 11ip link set dev $if up || exec sleep 5
12 12
13>>udhcpd.leases 13>>udhcpd.leases
14sed 's/^interface.*$/interface '"$if/" -i udhcpd.conf 14sed '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"
9if="${PWD##*/ifplugd_}" 9if="${PWD##*/ifplugd_}"
10 10
11echo "* Upping iface $if" 11echo "* Upping iface $if"
12ip link set dev "$if" up || { sleep 5; exit; } 12ip link set dev "$if" up || exec sleep 5
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 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
10echo "* Upping iface $if" 10echo "* 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
12ip link set dev "$if" up || { sleep 5; exit; } 12ip 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"
8if="${PWD##*/zcip_}" 8if="${PWD##*/zcip_}"
9 9
10echo "* Upping iface $if" 10echo "* Upping iface $if"
11ip link set dev "$if" up || { sleep 5; exit; } 11ip link set dev "$if" up || exec sleep 5
12 12
13echo "* Starting zcip on $if [$$]" 13echo "* Starting zcip on $if [$$]"
14exec \ 14exec \