summaryrefslogtreecommitdiff
path: root/layout/rootfs/etc/udhcpc/bound
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-05-04 00:10:26 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-05-04 00:10:26 +0000
commit7bb2006007c1996f33758e41db070252d4d3607f (patch)
tree3dc03d4f6a8867742961a3dea9ecc96c52d00a10 /layout/rootfs/etc/udhcpc/bound
parent1202c964c4e91083a3c60b41b9c11e220bfa759d (diff)
downloadlh-bootstrap-7bb2006007c1996f33758e41db070252d4d3607f.tar.xz
Make a lean and mean version, as a basis for filling an initramfs
Diffstat (limited to 'layout/rootfs/etc/udhcpc/bound')
-rwxr-xr-xlayout/rootfs/etc/udhcpc/bound25
1 files changed, 0 insertions, 25 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