first commit

This commit is contained in:
2026-10-02 13:57:32 +02:00
commit 9117f05db9
10 changed files with 2528 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/.wsbx/busybox sh
# udhcpc event script
B=/.wsbx/busybox
case "$1" in
bound|renew)
$B ip addr flush dev "$interface"
$B ip addr add "$ip/${mask:-24}" dev "$interface"
for r in $router; do $B ip route add default via "$r" dev "$interface"; break; done
$B rm -f /etc/resolv.conf
for d in $dns; do echo "nameserver $d"; done > /etc/resolv.conf
;;
esac