summaryrefslogtreecommitdiff
path: root/layout/rootfs/etc/udhcpc
diff options
context:
space:
mode:
Diffstat (limited to 'layout/rootfs/etc/udhcpc')
-rwxr-xr-xlayout/rootfs/etc/udhcpc/bound25
-rwxr-xr-xlayout/rootfs/etc/udhcpc/deconfig7
-rwxr-xr-xlayout/rootfs/etc/udhcpc/leasefail7
-rwxr-xr-xlayout/rootfs/etc/udhcpc/nak7
-rwxr-xr-xlayout/rootfs/etc/udhcpc/renew12
-rwxr-xr-xlayout/rootfs/etc/udhcpc/udhcpc-script4
6 files changed, 0 insertions, 62 deletions
diff --git a/layout/rootfs/etc/udhcpc/bound b/layout/rootfs/etc/udhcpc/bound
deleted file mode 100755
index c6a5748..0000000
--- a/layout/rootfs/etc/udhcpc/bound
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/command/execlineb -P
-
-multisubstitute
-{
- importas -ui interface interface
- importas -ui ip ip
- importas -ui subnet subnet
- importas -ui mask mask
- importas -ui router router
- importas -ui dns dns
- importas -uD localdomain domain domain
- importas -ui lease lease
-}
-
-foreground
-{
- redirfd -w 1 /run/service/udhcpc-${interface}/env/IPARG
- s6-echo -- "-r "${ip}" "
-}
-unexport ?
-if { s6-echo "udhcpc-script: bound: ${ip}/${mask} on ${interface}, gateway ${router}, lease time ${lease}" }
-if { ip addr add ${ip}/${subnet} dev ${interface} }
-foreground { redirfd -w 2 /dev/null ip route del default }
-if { route add default gw ${router} }
-fdmove 1 3 s6-echo
diff --git a/layout/rootfs/etc/udhcpc/deconfig b/layout/rootfs/etc/udhcpc/deconfig
deleted file mode 100755
index aee3f08..0000000
--- a/layout/rootfs/etc/udhcpc/deconfig
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/command/execlineb -P
-multisubstitute
-{
- importas -uD "<no server id>" serverid serverid
- importas -uD "<no error message>" message message
-}
-s6-echo "udhcpc-script: deconfig: server ${serverid} said: ${message}"
diff --git a/layout/rootfs/etc/udhcpc/leasefail b/layout/rootfs/etc/udhcpc/leasefail
deleted file mode 100755
index 2323345..0000000
--- a/layout/rootfs/etc/udhcpc/leasefail
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/command/execlineb -P
-multisubstitute
-{
- importas -uD "<no server id>" serverid serverid
- importas -uD "<no error message>" message message
-}
-s6-echo "udhcpc-script: leasefail: server ${serverid} said: ${message}"
diff --git a/layout/rootfs/etc/udhcpc/nak b/layout/rootfs/etc/udhcpc/nak
deleted file mode 100755
index 3ebcd12..0000000
--- a/layout/rootfs/etc/udhcpc/nak
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/command/execlineb -P
-multisubstitute
-{
- importas -uD "<no server id>" serverid serverid
- importas -uD "<no error message>" message message
-}
-s6-echo "udhcpc-script: nak: server ${serverid} said: ${message}"
diff --git a/layout/rootfs/etc/udhcpc/renew b/layout/rootfs/etc/udhcpc/renew
deleted file mode 100755
index 7b52a06..0000000
--- a/layout/rootfs/etc/udhcpc/renew
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/command/execlineb -P
-
-multisubstitute
-{
- importas -ui interface interface
- importas -ui ip ip
- importas -uD "<unknown mask>" mask mask
- importas -uD "<unknown DNS>" dns dns
- importas -ui router router
- importas -ui lease lease
-}
-s6-echo "udhcpc-script: renew: ${ip}/${mask} on ${interface}, gateway ${router}, lease time ${lease}"
diff --git a/layout/rootfs/etc/udhcpc/udhcpc-script b/layout/rootfs/etc/udhcpc/udhcpc-script
deleted file mode 100755
index 9db2042..0000000
--- a/layout/rootfs/etc/udhcpc/udhcpc-script
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/command/execlineb -S1
-ifelse { s6-test $# -ge 1 } { /etc/udhcpc/$1 }
-if { fdmove -c 1 2 s6-echo "udhcpc-script: too few arguments" }
-exit 1