summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/etc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'initrd/initrd-stuff/etc/functions')
-rw-r--r--initrd/initrd-stuff/etc/functions18
1 files changed, 9 insertions, 9 deletions
diff --git a/initrd/initrd-stuff/etc/functions b/initrd/initrd-stuff/etc/functions
index 655e8aca..349ee9da 100644
--- a/initrd/initrd-stuff/etc/functions
+++ b/initrd/initrd-stuff/etc/functions
@@ -197,7 +197,7 @@ option hw-mouse code 252\t\t= string;\n\
option hw-graphic code 253\t\t= string;\n\
option hw-monitor code 254\t\t= string;\n\n\
send dhcp-lease-time 86400;\nsend dhcp-max-message-size 1400;\n\
-request;\nscript \"/sbin/dhclient-script\";" >> /etc/dhclient.conf
+request;\nscript \"/bin/dhclient-script\";" >> /etc/dhclient.conf
if [ -n "$vci" ] ; then
echo "send vendor-class-identifier \"$vci\";" >> /etc/dhclient.conf
fi
@@ -232,13 +232,13 @@ export client="$dhcp"
case $dhcp in
dhclient)
mkdhclconf $vci
- ln -s /bin/dhcpmkconfig /sbin/dhclient-script
- dhclient -q -lf /var/lib/dhcp/dhclient.leases eth0 2>&1 >/dev/null || \
+ ln -s /bin/dhcpmkconfig /bin/dhclient-script
+ dhclient -q -cf /etc/dhclient.conf -lf /var/lib/dhcp/dhclient.leases eth0 2>&1 >/dev/null || \
error " Fatal error occured while trying to run dhclient.\n$commonerr"
;;
dhcpcd)
- ln -s /bin/dhcpmkconfig /sbin/dhcpd.exe
- dhcpcd -L /var/lib/dhcp -c /sbin/dhcpd.exe -T -t 30 eth0 2>&1 >/dev/null || \
+ ln -s /bin/dhcpmkconfig /bin/dhcpd.exe
+ dhcpcd -L /var/lib/dhcp -c /bin/dhcpd.exe -T -t 30 eth0 2>&1 >/dev/null || \
error " Fatal error occured while trying to run dhcpcd.\n$commonerr"
;;
pump)
@@ -271,8 +271,8 @@ basename () {
#######################################################################
# simple string in string search
strinstr (){
-case "$2" in *$1*) return 0;; esac
-return 1
+ case "$2" in *$1*) return 0;; esac
+ return 1
}
#######################################################################
@@ -285,8 +285,8 @@ return 1
#return 1
#}
strinfile(){
-case "$(cat $2)" in *$1*) return 0;; esac
-return 1
+ case "$(cat $2)" in *$1*) return 0;; esac
+ return 1
}