summaryrefslogtreecommitdiffstats
path: root/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx')
-rwxr-xr-xcore/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx b/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx
index 0e64643e..05a08b8f 100755
--- a/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx
+++ b/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx
@@ -189,16 +189,13 @@ case "$1" in
sed -i "s/^\(SLX_PXE_CLIENT_IP=\).*$/\1'$ip'/" /opt/openslx/config
# Write DOMAIN and SEARCH to /opt/openslx/config if empty
if [ -z "$SLX_NET_DOMAIN" ] && [ -n "$domain" ]; then
- sed -i "s/^SLX_NET_DOMAIN=/# &/" /opt/openslx/config
echo "SLX_NET_DOMAIN='$domain'" >> /opt/openslx/config
fi
if [ -z "$SLX_NET_SEARCH" ] && [ -n "$search" ]; then
- sed -i "s/^SLX_NET_SEARCH=/# &/" /opt/openslx/config
echo "SLX_NET_SEARCH='$search'" >> /opt/openslx/config
fi
# Same for WINS servers
if [ -z "$SLX_NET_WINS" ] && [ -n "$wins" ]; then
- sed -i "/^SLX_NET_WINS=/d" /opt/openslx/config
echo "SLX_NET_WINS='$wins'" >> /opt/openslx/config
fi