aboutsummaryrefslogtreecommitdiff
path: root/layout/rootfs/etc/udhcpc/renew
diff options
context:
space:
mode:
Diffstat (limited to 'layout/rootfs/etc/udhcpc/renew')
-rwxr-xr-xlayout/rootfs/etc/udhcpc/renew12
1 files changed, 12 insertions, 0 deletions
diff --git a/layout/rootfs/etc/udhcpc/renew b/layout/rootfs/etc/udhcpc/renew
new file mode 100755
index 0000000..1bd5236
--- /dev/null
+++ b/layout/rootfs/etc/udhcpc/renew
@@ -0,0 +1,12 @@
+#!/command/execlineb -P
+
+multisubstitute
+{
+ import -ui interface
+ import -ui ip
+ import -uD "<unknown mask>" mask
+ import -uD "<unknown DNS>" dns
+ import -ui router
+ import -ui lease
+}
+s6-echo "udhcpc-script: renew: ${ip}/${mask} on ${interface}, gateway ${router}, lease time ${lease}"