]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Einie Syntaxfehler bereinigt.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Tue, 14 Aug 2007 20:04:10 +0000 (20:04 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Tue, 14 Aug 2007 20:04:10 +0000 (20:04 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@769 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

src/initscripts/init.d/networking/any

index 6af04ff522c9e61799ce9515d5ff32f6920fe66f..8689bf57691ef91f558272e3ebc403bba7a130c7 100644 (file)
 . ${rc_functions}
 eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
 
-if [ "$0" == "green" ]; then
+if [ "$(basename $0)" == "green" ]; then
        DEVICE="${GREEN_DEV}"
        ADDRESS="${GREEN_ADDRESS}"
        BROADCAST="${GREEN_BROADCAST}"
        NETADDRESS="${GREEN_NETADDRESS}"
        NETMASK="${GREEN_NETMASK}"
        DEVICE="${GREEN_DEV}"
-elif [ "$0" == "blue" ]; then
+elif [ "$(basename $0)" == "blue" ]; then
        DEVICE="${BLUE_DEV}"
        ADDRESS="${BLUE_ADDRESS}"
        BROADCAST="${BLUE_BROADCAST}"
        NETADDRESS="${BLUE_NETADDRESS}"
        NETMASK="${BLUE_NETMASK}"
        DEVICE="${BLUE_DEV}"
-elif [ "$0" == "orange" ]; then
+elif [ "$(basename $0)" == "orange" ]; then
        DEVICE="${ORANGE_DEV}"
        ADDRESS="${ORANGE_ADDRESS}"
        BROADCAST="${ORANGE_BROADCAST}"
@@ -57,7 +57,7 @@ else
        exit 1
 fi
 
-case "${1}" do
+case "${1}" in
 
        start)
                boot_mesg "Bringing up the ${DEVICE} interface..."