summaryrefslogtreecommitdiffstats
path: root/remote/modules/dhcpc-busybox
diff options
context:
space:
mode:
authorSebastian2014-01-31 13:33:44 +0100
committerSebastian2014-01-31 13:33:44 +0100
commit53fd2d2dc65be0aa69a55d0c56c99d45cd5dd778 (patch)
treef74cea805b7e80ba39dc2d3ece96f03f9b6f09d7 /remote/modules/dhcpc-busybox
parent[rfs-s31] make sure IFACE in /run/network.conf is not empty :) (diff)
downloadtm-scripts-53fd2d2dc65be0aa69a55d0c56c99d45cd5dd778.tar.gz
tm-scripts-53fd2d2dc65be0aa69a55d0c56c99d45cd5dd778.tar.xz
tm-scripts-53fd2d2dc65be0aa69a55d0c56c99d45cd5dd778.zip
[dhcp-busybox] add support for /etc/resolfconf/update.d for udhcpc
Diffstat (limited to 'remote/modules/dhcpc-busybox')
-rwxr-xr-xremote/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx7
1 files changed, 7 insertions, 0 deletions
diff --git a/remote/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx b/remote/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx
index e43afb33..58b1d144 100755
--- a/remote/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx
+++ b/remote/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx
@@ -26,6 +26,13 @@ rebuild_resolv_conf () {
# Maybe make this smarter some time, if anyone is using client's that are on multiple networks at once etc...
# This is a little braindead but should work most of the time
sort -u /run/network/*.resolv > "$RESOLV_CONF" 2> /dev/null
+
+ # add support for resolv.conf update scripts // see man(8) resolvconf
+ if [ -d /etc/resolvconf/update.d ]; then
+ for s in $(ls -1 /etc/resolvconf/update.d/*.sh); do
+ $s
+ done
+ fi
}
escape_search() {