]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- remove bashizm in using test ("=" instead "==").
authorkloczek <kloczek@pld-linux.org>
Wed, 6 Oct 1999 16:52:37 +0000 (16:52 +0000)
committerkloczek <kloczek@pld-linux.org>
Wed, 6 Oct 1999 16:52:37 +0000 (16:52 +0000)
svn-id: @565

13 files changed:
rc.d/init.d/allowlogin
rc.d/init.d/functions
rc.d/init.d/functions.network
rc.d/init.d/network
rc.d/rc
rc.d/rc.sysinit
sysconfig/network-scripts/ifdown
sysconfig/network-scripts/ifdown-sl
sysconfig/network-scripts/ifup
sysconfig/network-scripts/ifup-post
sysconfig/network-scripts/ifup-sl
sysconfig/network-scripts/tnldown
sysconfig/network-scripts/tnlup

index e48fa3cd10ecfe99f2cb066e00132c6a77734223..c75a29b7744d14276885b877a95137dc569ab4f8 100644 (file)
@@ -5,7 +5,7 @@
 # chkconfig: 2345 99 1
 # description: Allow users to login.
 #
-# $Id: allowlogin,v 1.4 1999/09/27 09:54:58 misiek Exp $
+# $Id: allowlogin,v 1.5 1999/10/06 16:52:37 kloczek Exp $
 
 # NLS
 NLS_DOMAIN="rc-scripts"
@@ -20,13 +20,13 @@ NLS_DOMAIN="rc-scripts"
 # See how we were called.
 case "$1" in
   start)
-       if [ "$DELAY_LOGIN" == "yes" ] && [ -f /etc/nologin.boot ]; then
+       if [ "$DELAY_LOGIN" = "yes" ] && [ -f /etc/nologin.boot ]; then
                run_cmd "Allowing users to login" rm -f /etc/nologin /etc/nologin.boot
        fi
         ;;
   stop)
        # /etc/nologin when shutting down system
-       if [ "$DELAY_LOGIN" == "yes" ] && [ ! -f /etc/nologin ]; then
+       if [ "$DELAY_LOGIN" = "yes" ] && [ ! -f /etc/nologin ]; then
                nls "System shutdown in progress \n" > /etc/nologin
                chmod 644 /etc/nologin
                cp -fp /etc/nologin /etc/nologin.boot
index dbb09170e1eb1034171f58846334a254fe3344cc..327c7be22053e53a0ac48bd12286cce4488a9fec 100644 (file)
@@ -1,7 +1,7 @@
 # functions    This file contains functions to be used by most or all
 #              shell scripts in the /etc/init.d directory.
 #
-# $Id: functions,v 1.28 1999/09/27 18:31:05 wiget Exp $
+# $Id: functions,v 1.29 1999/10/06 16:52:37 kloczek Exp $
 #
 # Author:      Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
 # Hacked by:    Greg Galloway and Marc Ewing
@@ -17,7 +17,7 @@ export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
 # Colors workaround
 termput() 
 {
-       if [ "$COLOR_INIT" == "no" ]; then
+       if [ "$COLOR_INIT" = "no" ]; then
                :
        elif [ ! -d /usr/share/terminfo ] || \
             ! ( [ -x /usr/bin/tput ] || [ -x /bin/tput ] ) ; then
@@ -173,7 +173,7 @@ killproc()
 
         # Kill it.
         if [ "$pid" != "" ] ; then
-               if [ "$notset" == "1" ] ; then
+               if [ "$notset" = "1" ] ; then
                        if ps h $pid>/dev/null 2>&1; then
                                # TERM first, then KILL if not dead
                                kill -TERM $pid >/dev/null 2>&1
index 9824d931cbb35379b6fc6bd148dbd1dec41fa8c6..b8b5c101d9c79695a7da8ef440e87e4f6482f8a1 100755 (executable)
@@ -1,5 +1,5 @@
 #
-# $Id: functions.network,v 1.27 1999/09/28 16:15:56 jajcus Exp $
+# $Id: functions.network,v 1.28 1999/10/06 16:52:37 kloczek Exp $
 #
 # This is not a shell script; it provides functions to network scripts
 # that source it.
@@ -124,10 +124,10 @@ setup_nat()
 {
        if [ -r /etc/sysconfig/static-nat ]; then
                grep "^[0-9]" /etc/sysconfig/static-nat | while read src via dst; do
-                       if [ "$1" == "on" ]; then
+                       if [ "$1" = "on" ]; then
                                /sbin/ip route add nat $src via $dst
                                /sbin/ip rule add from $dst nat $src
-                       elif [ "$1" == "off" ]; then
+                       elif [ "$1" = "off" ]; then
                                /sbin/ip rule del from $dst nat $src
                                /sbin/ip route del nat $src via $dst
                fi
@@ -152,9 +152,9 @@ MESSAGE="$6"
 eval VARD=\$${VAR}
 
 if [ -n "$VARD" ] && [ -e /proc/sys/net/$WHAT ]; then
-       if [ "$TODO" == "start" ]; then
-               [ "$VARD" == "no" -a "$SET" == "1" ] && SET="$(($SET - 1))"
-               [ "$VARD" == "yes" -a "$SET" == "0" ] && SET="$(($SET + 1))"
+       if [ "$TODO" = "start" ]; then
+               [ "$VARD" = "no" -a "$SET" = "1" ] && SET="$(($SET - 1))"
+               [ "$VARD" = "yes" -a "$SET" = "0" ] && SET="$(($SET + 1))"
                if [ -n "$MESSAGE" ]; then
                        show "`nls "Setting %s to %s" "$MESSAGE" "$SET"`"; busy
                        if (echo "$SET" > /proc/sys/net/$WHAT) 2> /dev/null; then
@@ -165,7 +165,7 @@ if [ -n "$VARD" ] && [ -e /proc/sys/net/$WHAT ]; then
                else
                        echo "$SET" > /proc/sys/net/$WHAT
                fi
-       elif [ "$TODO" == "stop" ]; then
+       elif [ "$TODO" = "stop" ]; then
                if [ -n "$MESSAGE" ]; then
                        show "`nls "Setting %s to %s" "$MESSAGE" "$DEF"`"; busy
                        if (echo "$DEF" > /proc/sys/net/$WHAT) 2> /dev/null; then
@@ -188,7 +188,7 @@ case "$IPV4_DYNAMIC_IP_PATCH_VALUE" in
        *)      IPV4_DYNAMIC_IP_PATCH_VALUE=7 ;;
 esac
 
-if [ "$IPV4_DYNAMIC_IP_PATCH" == "yes" ] && [ "$1" == "on" ]; then
+if [ "$IPV4_DYNAMIC_IP_PATCH" = "yes" ] && [ "$1" = "on" ]; then
 show "Enabling dynamic IP patch"; busy
 if echo $IPV4_DYNAMIC_IP_PATCH_VALUE > /proc/sys/net/ipv4/ip_dynaddr; then deltext; ok; else deltext; fail; fi
 else
@@ -203,7 +203,7 @@ ipv4_local_port_range()
 {
 if [ "$IPV4_LOCAL_PORT_RANGE" != "default" -a -n "$IPV4_LOCAL_PORT_RANGE" ] || \
    [ ! -e /proc/sys/net/ipv4/ip_local_port_range ]; then
-       if [ "$IPV4_LOCAL_PORT_RANGE" == "yes" ] && [ "$1" == "on" ]; then
+       if [ "$IPV4_LOCAL_PORT_RANGE" = "yes" ] && [ "$1" = "on" ]; then
                show "Setting local port range"; busy
                if echo "$IPV4_LOCAL_PORT_RANGE" > /proc/sys/net/ipv4/ip_local_port_range; then
                        deltext
@@ -229,7 +229,7 @@ ipv4_anti_spoofing()
 {
 if [ "$IPV4_ANTI_SPOOFING" != "default" -a -n "$IPV4_ANTI_SPOOFING" ] || \
    [ ! -e /proc/sys/net/ipv4/conf/all/rp_filter ]; then
-       if [ "$IPV4_ANTI_SPOOFING" == "yes" ] && [ "$1" == "on" ]; then
+       if [ "$IPV4_ANTI_SPOOFING" = "yes" ] && [ "$1" = "on" ]; then
                show "Setting up IP spoofing protection"; busy
                if (for f in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 1 > $f; done); then
                        deltext
@@ -268,7 +268,7 @@ ip link set dev lo down
 
 static_arp()
 {
-if [ "$STATIC_ARP" == "yes" ]; then
+if [ "$STATIC_ARP" = "yes" ]; then
        if [ -r /etc/ethers -a -x /sbin/arp ]; then
                /sbin/arp -f /etc/ethers
        fi
@@ -277,7 +277,7 @@ fi
 
 modprobe_net()
 {
-[ "$IPV6_NETWORKING" == "yes" ] && [ "`ls -R /lib/modules/\`uname -r\`/ | grep ipv6.o`" != "" ] && modprobe -s -k net-pf-10
+[ "$IPV6_NETWORKING" = "yes" ] && [ "`ls -R /lib/modules/\`uname -r\`/ | grep ipv6.o`" != "" ] && modprobe -s -k net-pf-10
 }
 
 #
@@ -313,7 +313,7 @@ for i in $1; do
 done
 
 IFS=$OIFS
-if [ "$bad" == "0" ]; then
+if [ "$bad" = "0" ]; then
        echo "$prefix"
 else
        echo "32"
@@ -328,7 +328,7 @@ return
 calcnetmask() {
 local prefix a MASK
 MASK=""
-if [ "`echo "${1}" | grep "^[0-9]"`" == "" ]; then
+if [ "`echo "${1}" | grep "^[0-9]"`" = "" ]; then
        prefix=32
 else
        typeset -i prefix=$1
index fdac02409ffe03b4f0f7c8d2c0d2a5a651985686..c2054a58944f52b4a9bd48bc9d7991cfeea7abcd 100644 (file)
@@ -7,7 +7,7 @@
 #              start at boot time.
 # probe: true
 
-# $Id: network,v 1.24 1999/09/28 16:16:42 jajcus Exp $
+# $Id: network,v 1.25 1999/10/06 16:52:37 kloczek Exp $
 
 # NLS
 NLS_DOMAIN="rc-scripts"
@@ -21,7 +21,7 @@ NLS_DOMAIN="rc-scripts"
 . /etc/sysconfig/network
 
 # Check that networking is up.
-[ "${NETWORKING}" == "no" -o "${NETWORKING}" == "" ] && exit 0
+[ "${NETWORKING}" = "no" -o "${NETWORKING}" = "" ] && exit 0
 
 [ -x /sbin/ip ] || exit 0
 
diff --git a/rc.d/rc b/rc.d/rc
index 6ed64fc67ed8db0e1f39b2c535ed8fb4946e5121..7697745c243be968669a1b91a1f09bb16f447d4e 100755 (executable)
--- a/rc.d/rc
+++ b/rc.d/rc
@@ -5,7 +5,7 @@
 #               responsible for the very first setup of basic
 #               things, such as setting the hostname.
 #
-# $Id: rc,v 1.12 1999/09/28 14:24:23 kloczek Exp $
+# $Id: rc,v 1.13 1999/10/06 16:52:36 kloczek Exp $
 #
 # Original Author:       
 #               Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
@@ -39,12 +39,12 @@ export runlevel previous
 
 # if runlevel is 0 (halt) or 6 (reboot) change to first
 # virtual console
-if [ "$runlevel" == "0" ] || [ "$runlevel" == "6" ]; then
+if [ "$runlevel" = "0" ] || [ "$runlevel" = "6" ]; then
        exec 0<> /dev/tty1 1>&0 2>&0
        [ -x /usr/bin/chvt ] && /usr/bin/chvt 1 && echo
 else
-# if previous runlevel == current runlevel do nothing
-       [ "$runlevel" == "$previous" ] && exit 0
+# if previous runlevel = current runlevel do nothing
+       [ "$runlevel" = "$previous" ] && exit 0
 fi
 
 # set onlcr to avoid staircase effect and do not lock scrolling
index 3c05249c4969451376df4eb8cd3e07c42fc3be96..99f0ee5fe09227abeebcdb56ec96feff5e52a571 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 #
 # /etc/rc.d/rc.sysinit - run once at boot time
-# $Id: rc.sysinit,v 1.30 1999/09/28 14:23:07 kloczek Exp $
+# $Id: rc.sysinit,v 1.31 1999/10/06 16:52:36 kloczek Exp $
 #
 # Taken in part from Miquel van Smoorenburg's bcheckrc.
 # Changes:      Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
@@ -96,7 +96,7 @@ if [ ! -f /fastboot ] && [ ! -n "$NFSROOT" ]; then
                nls "\n\n*** An error occurred during the file system check.\n*** Dropping you to a shell; the system will reboot\n*** when you leave the shell.\n"
 
                PS1="`nls "(Repair filesystem) #"`"; export PS1
-               if [ "$RUN_SULOGIN_ON_ERR" == "yes" ]; then
+               if [ "$RUN_SULOGIN_ON_ERR" = "yes" ]; then
                        sulogin
                else
                        /bin/sh
@@ -105,7 +105,7 @@ if [ ! -f /fastboot ] && [ ! -n "$NFSROOT" ]; then
                run_cmd "Unmounting file systems" umount -a
                mount -n -o remount,ro /
                run_cmd "Automatic reboot in progress." reboot
-       elif [ "$rc" == "1" ]; then
+       elif [ "$rc" = "1" ]; then
                _RUN_QUOTACHECK=1
        fi
 fi
@@ -119,7 +119,7 @@ fi
 
 # set up pnp 
 if [ -x /sbin/isapnp -a -f /etc/isapnp/isapnp.conf ]; then
-       if [ -n "$PNP" ] && [ "$RUN_ISAPNP" == "yes" ]; then
+       if [ -n "$PNP" ] && [ "$RUN_ISAPNP" = "yes" ]; then
                run_cmd "Setting up ISA PNP devices" /sbin/isapnp /etc/isapnp/isapnp.conf
        fi
 fi
@@ -128,14 +128,14 @@ fi
 run_cmd "Remounting root filesystem in rw mode" mount -n -o remount,rw /
 
 # Update quotas if fsck was run on /.
-if [ X"$_RUN_QUOTACHECK" == "X1" -a -x /sbin/quotacheck ] && [ ! -n "$NFSROOT" ]; then
+if [ X"$_RUN_QUOTACHECK" = "X1" -a -x /sbin/quotacheck ] && [ ! -n "$NFSROOT" ]; then
         run_cmd "Checking root filesystem quotas" /sbin/quotacheck -v /
 fi
 
 # /etc/nologin when starting system
 [ -f /etc/nologin.boot ] && rm -f /etc/nologin /etc/nologin.boot
 
-if [ "$DELAY_LOGIN" == "yes" ] && [ ! -f /etc/nologin ]; then
+if [ "$DELAY_LOGIN" = "yes" ] && [ ! -f /etc/nologin ]; then
        show "Enabling Delay Login"; busy
        echo > /etc/nologin
        nls "System bootup in progress  - please wait" >> /etc/nologin
@@ -185,7 +185,7 @@ if [ -x /sbin/depmod -a -n "$USEMODULES" ]; then
 fi
 
 # load sound modules
-if [ -n "$USEMODULES" ] && [ "$LOAD_SOUND" == "yes" ]; then
+if [ -n "$USEMODULES" ] && [ "$LOAD_SOUND" = "yes" ]; then
    if grep -s -q "^alias sound" /etc/conf.modules ; then
       run_cmd "Loading sound module" modprobe -s sound
    fi
@@ -217,7 +217,7 @@ if [ -f /proc/mdstat -a -f /etc/raidtab -a -x /sbin/raidadd ]; then
                nls "\n\n*** An error occurred during the RAID startup\n*** Dropping you to a shell; the system will reboot\n*** when you leave the shell.\n"
 
                PS1="`nls "(RAID Repair) #"`"; export PS1
-               if [ "$RUN_SULOGIN_ON_ERR" == "yes" ]; then
+               if [ "$RUN_SULOGIN_ON_ERR" = "yes" ]; then
                        sulogin
                else
                        /bin/sh
@@ -243,7 +243,7 @@ if [ ! -f /fastboot ]; then
                nls "\n\n*** An error occurred during the file system check.\n*** Dropping you to a shell; the system will reboot\n*** when you leave the shell.\n"
 
                PS1="`nls "(Repair filesystem) #"`"; export PS1
-               if [ "$RUN_SULOGIN_ON_ERR" == "yes" ]; then
+               if [ "$RUN_SULOGIN_ON_ERR" = "yes" ]; then
                        sulogin
                else
                        /bin/sh
@@ -252,7 +252,7 @@ if [ ! -f /fastboot ]; then
                run_cmd "Unmounting file systems" umount -a
                run_cmd "Remounting root filesystem in ro mode" mount -n -o remount,ro /
                run_cmd "Automatic reboot in progress." reboot
-       elif [ "$rc" == "1" -a -x /sbin/quotacheck ]; then
+       elif [ "$rc" = "1" -a -x /sbin/quotacheck ]; then
                run_cmd "Checking filesystem quotas" /sbin/quotacheck -v -R -a
        fi
 fi
@@ -280,7 +280,7 @@ chown root.utmp /var/run/utmpx
 chmod 0664 /var/run/utmpx /var/log/wtmpx
 
 # Clean /tmp
-if [ "$CLEAN_TMP" == "yes" ]; then
+if [ "$CLEAN_TMP" = "yes" ]; then
        rm -rf /tmp/*
 fi
 
@@ -313,9 +313,9 @@ if [ -f /etc/sysconfig/clock ]; then
        . /etc/sysconfig/clock
 
        # convert old style clock config to new values
-       if [ "${CLOCKMODE}" == "GMT" ]; then
+       if [ "${CLOCKMODE}" = "GMT" ]; then
                UTC=true
-       elif [ "${CLOCKMODE}" == "ARC" ]; then
+       elif [ "${CLOCKMODE}" = "ARC" ]; then
            ARC=true
        fi
 fi
@@ -349,7 +349,7 @@ show "`nls "Date set to"` `date`"; ok
 
 # Right, now turn on swap in case we swap to files.
 show "Enabling swap space"; busy
-if [ "`LANG=C swapon -a 2>&1 | grep -v "busy"`" == "" ]; then
+if [ "`LANG=C swapon -a 2>&1 | grep -v "busy"`" = "" ]; then
        deltext; ok
 else
        deltext; fail
index dcaf01357e1e425f9cbfe09908071d7387500d26..8e8071b58033108ee310bbe70ea90c632af87971 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $Id: ifdown,v 1.12 1999/09/28 16:17:30 jajcus Exp $
+#      $Id: ifdown,v 1.13 1999/10/06 16:52:37 kloczek Exp $
 #
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 
@@ -28,7 +28,7 @@ source_config
 
 # IPv4, IPv6 or both ?
 [ -n "$IPV6_ADDR" ]                   && IPv6=yes || IPv6=no
-[ -n "$IPADDR" -o "$PUMP" == "true" ] && IPv4=yes || IPv4=no
+[ -n "$IPADDR" -o "$PUMP" = "true" ] && IPv4=yes || IPv4=no
 
 if [ -z "$PREFIX" ] && [ -n "$NETMASK" ]; then
        PREFIX="`calcprefix $NETMASK`"
@@ -43,8 +43,8 @@ DEVICETYPE=`echo $FULLDEVNAME | sed "s/[0-9]*$//"`
 DEVICE=`echo $FULLDEVNAME | sed 's/:.*//g'`
 OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown-${DEVICETYPE}"
 
-if [ -x $OTHERSCRIPT -a "$IPv4" == "yes" ]; then
-    if [ "$DEFAULTHANDLING" == "yes" ]; then
+if [ -x $OTHERSCRIPT -a "$IPv4" = "yes" ]; then
+    if [ "$DEFAULTHANDLING" = "yes" ]; then
         $OTHERSCRIPT $CONFIG $2
     else
        $OTHERSCRIPT $CONFIG $2
@@ -58,8 +58,8 @@ else
     ISALIAS=no
 fi
 
-if [ "$ISALIAS" == "yes" ]; then
-       if [ "$IPv4" == "yes" ]; then
+if [ "$ISALIAS" = "yes" ]; then
+       if [ "$IPv4" = "yes" ]; then
                ip -family inet addr del ${IPADDR}/${PREFIX} dev ${DEVICE} label ${FULLDEVNAME}
        fi
                for ADDR in ${IPV6_ADDR} ; do
index a3f1b5019bb8702410de5f40ecd9f073955ee942..0628dfcbe35083e852a8e3b17dc99d0d6ff465f7 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $Id: ifdown-sl,v 1.7 1999/09/28 16:17:30 jajcus Exp $
+#      $Id: ifdown-sl,v 1.8 1999/10/06 16:52:37 kloczek Exp $
 #
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 
@@ -30,7 +30,7 @@ done
 fi
 #
 # The proctitle for connected dip daemons is actually "-dip (ipaddr)"
-#      with ipaddr == local on dial-out,  remote on dial-in
+#      with ipaddr = local on dial-out,  remote on dial-in
 # Grab the PID of connected dial-out daemon.
 #
 if [ -z "$PID" ]; then
index 1fc1816bd877bec2e49c40a3891512d61150de1b..4f2b52650946aa9e2050ca9ad2e55eb2e5f18c0a 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $Id: ifup,v 1.27 1999/09/28 16:17:30 jajcus Exp $
+#      $Id: ifup,v 1.28 1999/10/06 16:52:37 kloczek Exp $
 #
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 
@@ -28,7 +28,7 @@ fi
 
 source_config
 
-if [ "foo$2" == "fooboot" -a "${ONBOOT}" == "no" ]; then
+if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]; then
     exit
 fi
 
@@ -48,22 +48,22 @@ else
 fi
 
 # Old BOOTP variable
-if [ "$BOOTP" == "yes" ]; then
+if [ "$BOOTP" = "yes" ]; then
     BOOTPROTO=bootp
 fi
 
-if [ "$BOOTPROTO" == bootp -o "$BOOTPROTO" == "dhcp" ]; then
+if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = "dhcp" ]; then
     PUMP=true
 fi
 
 # IPv4, IPv6 or both ?
 [ -n "$IPV6_ADDR" ]                   && IPv6=yes || IPv6=no
-[ -n "$IPADDR" -o "$PUMP" == "true" ] && IPv4=yes || IPv4=no
+[ -n "$IPADDR" -o "$PUMP" = "true" ] && IPv4=yes || IPv4=no
 
 # Tunnel device ?
 [ -f /etc/sysconfig/interfaces/tnlcfg-${FULLDEVNAME} ] && TNL=yes || TNL=no
 
-if [ "$TNL" == "yes" ]; then
+if [ "$TNL" = "yes" ]; then
        TNLOPTS="onlink"
 fi
 
@@ -75,12 +75,12 @@ if [ -z "$NETMASK" ] && [ -n "$PREFIX" ]; then
        NETMASK="`calcnetmask $PREFIX`"
 fi
 
-[ "$MULTICAST" == "yes" ] && MULTICAST=on               || MULTICAST=off
+[ "$MULTICAST" = "yes" ] && MULTICAST=on               || MULTICAST=off
 [ -n "$SRC_ADDR" ]        && SRC_ADDR="src ${SRC_ADDR}" || SRC_ADDR=""
 [ -z "$PROTOCOL" ]        && PROTOCOL=ip
 
 if [ "$ARP" ]; then
-       [ "$ARP" == "yes" ]     && ARP=on       || ARP=off
+       [ "$ARP" = "yes" ]      && ARP=on       || ARP=off
 elif [ "$DEVICETYPE" = "eth" ]; then
        ARP=on
 else
@@ -89,8 +89,8 @@ fi
 
 OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-${DEVICETYPE}"
 
-if [ -x "$OTHERSCRIPT" -a "$IPv4" == "yes" ]; then
-    if [ "$DEFAULTHANDLING" == "yes" ]; then
+if [ -x "$OTHERSCRIPT" -a "$IPv4" = "yes" ]; then
+    if [ "$DEFAULTHANDLING" = "yes" ]; then
         $OTHERSCRIPT $CONFIG $2
     else
         exec $OTHERSCRIPT $CONFIG $2
@@ -103,8 +103,8 @@ if ! (/sbin/ip link set multicast ${MULTICAST} dev ${DEVICE} > /dev/null 2>&1);
     exit 0
 fi
 
-if [ "$SLAVE" == "yes" -a "$ISALIAS" == "no" -a "$MASTER" != "" -a -x /sbin/ifenslave ]; then
-    RFLAG="" ; [ "${RECIEVE-ONLY}" == "yes" ] && RFLAG="-r"
+if [ "$SLAVE" = "yes" -a "$ISALIAS" = "no" -a "$MASTER" != "" -a -x /sbin/ifenslave ]; then
+    RFLAG="" ; [ "${RECIEVE-ONLY}" = "yes" ] && RFLAG="-r"
 
     ip link set ${DEVICE} down
     echo "Enslaving $DEVICE to $MASTER"
@@ -117,7 +117,7 @@ if [ -n "$MACADDR" ]; then
    ip link set ${DEVICE} address ${MACADDR}
 fi
 
-if [ -n "$PUMP" ] && [ "$ISALIAS" == "no" ]; then
+if [ -n "$PUMP" ] && [ "$ISALIAS" = "no" ]; then
 
     echo -n "Determining IP information for $DEVICEFULLNAME..."
     if /sbin/pump -i $DEVICEFULLNAME ; then
@@ -129,7 +129,7 @@ if [ -n "$PUMP" ] && [ "$ISALIAS" == "no" ]; then
 
 else
 
-if [ "$IPv4" == "yes" ]; then
+if [ "$IPv4" = "yes" ]; then
     if [ -z "$PREFIX" ]; then
        eval `/bin/ipcalc --prefix ${IPADDR}`
     fi
@@ -145,7 +145,7 @@ fi
 
     ip link set ${DEVICE} multicast ${MULTICAST} arp ${ARP} up
 
-if [ "$IPv4" == "yes" ]; then
+if [ "$IPv4" = "yes" ]; then
     ip -family inet addr add ${IPADDR}/${PREFIX} broadcast ${BROADCAST} dev ${DEVICE} label ${FULLDEVNAME}
 
     # Another IPv4 aliases support
@@ -156,7 +156,7 @@ fi
 
 
 # IPv6 rules
-    if [ "${IPV6_NETWORKING}" == "yes" ] ; then
+    if [ "${IPV6_NETWORKING}" = "yes" ] ; then
 
       for ADDR6 in ${IPV6_ADDR} ; do
        ip -family inet6 addr add ${ADDR6} dev ${DEVICE} label ${FULLDEVNAME}
@@ -164,7 +164,7 @@ fi
       done  
 
       # only for sit tunnel device
-      if (ip tunnel show ${FULLDEVNAME} 2>&1 | grep -q "ipv6/ip") && [ "$TNL" == "yes" ]; then
+      if (ip tunnel show ${FULLDEVNAME} 2>&1 | grep -q "ipv6/ip") && [ "$TNL" = "yes" ]; then
 
        for ADDR4 in `ip -4 addr | grep inet | grep -v "127\..*\..*\..*" | \
                      sed -e "s#.*inet ##" | sed -e "s#/.*##" | xargs`; do
@@ -177,8 +177,8 @@ fi
     fi
 
 # hack for 2.2 kernels
-if [ "$IPv4" == "yes" ]; then
-    if [ "$ISALIAS" == "no" ] && [ -z "`ip -f inet route | sed "s/ .*//" | grep ${NETWORK}`" ]; then
+if [ "$IPv4" = "yes" ]; then
+    if [ "$ISALIAS" = "no" ] && [ -z "`ip -f inet route | sed "s/ .*//" | grep ${NETWORK}`" ]; then
        ip -family inet route add ${NETWORK}/${PREFIX} dev ${DEVICE} ${SRC_ADDR} ${TNLOPTS}
     else
        ip -family inet route add ${IPADDR}/32 dev ${DEVICE} ${SRC_ADDR} ${TNLOPTS}
@@ -217,7 +217,7 @@ fi
     fi
 fi
 
-if [ "$IPX" == "yes" ]; then
+if [ "$IPX" = "yes" ]; then
        /etc/sysconfig/network-scripts/ifup-ipx $DEVICE
 fi
 
index cf560d49d9eedbf8eec83d79a3bc0cad43167572..7a0bf4e05d13bd74b0327ae975927fad5afe438a 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $Id: ifup-post,v 1.11 1999/09/28 16:17:30 jajcus Exp $
+#      $Id: ifup-post,v 1.12 1999/10/06 16:52:37 kloczek Exp $
 #
 
 cd /etc/sysconfig/network-scripts
@@ -26,7 +26,7 @@ fi
 
 /etc/sysconfig/network-scripts/ifup-routes ${FULLDEVNAME}
 
-if [ "$ISALIAS" == "no" ] ; then
+if [ "$ISALIAS" = "no" ] ; then
     /etc/sysconfig/network-scripts/ifup-aliases ${DEVICE}
 fi
 
index ec032589bb538ee793d6bb2c17f64fe2ad556fcf..f10568d0930d30830830f974377f7c3d254a53d8 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $Id: ifup-sl,v 1.13 1999/09/02 12:25:35 misiek Exp $
+#      $Id: ifup-sl,v 1.14 1999/10/06 16:52:37 kloczek Exp $
 #
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 
@@ -100,7 +100,7 @@ else
         ip -family inet addr add $IPADDR peer $REMIP dev $DEVICE
 
         # Set defaultroute
-        if [ "$DEFROUTE" == "yes" ]; then
+        if [ "$DEFROUTE" = "yes" ]; then
                ip -family inet route add default dev $DEVICE
          fi
 
index 0d6125e4b9867d7aed4f1350f2c5093145b204f0..9fff16f57db570029f5f7f1c959a7970a204a46c 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $Id: tnldown,v 1.7 1999/09/27 10:01:33 misiek Exp $
+#      $Id: tnldown,v 1.8 1999/10/06 16:52:37 kloczek Exp $
 #
 # Author: Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
 #
@@ -29,18 +29,18 @@ then
         exit
 fi
 
-if [ "${IPV6_TUNNELCONFIG}" != "yes" ] && [ "${MODE}" == "sit" ] || \
-   [ "${IPX}" != "yes" ] && [ "${MODE}" == "ipxip" ] || \
-   [ "${IPX}" != "yes" ] && [ "${MODE}" == "ipipx" ]
+if [ "${IPV6_TUNNELCONFIG}" != "yes" ] && [ "${MODE}" = "sit" ] || \
+   [ "${IPX}" != "yes" ] && [ "${MODE}" = "ipxip" ] || \
+   [ "${IPX}" != "yes" ] && [ "${MODE}" = "ipipx" ]
 then
         exit
 fi
 
-if [ "${MODE}" == "ipip" ] || [ "${MODE}" == "sit" ] || [ "${MODE}" == "gre" ]; then
+if [ "${MODE}" = "ipip" ] || [ "${MODE}" = "sit" ] || [ "${MODE}" = "gre" ]; then
 
        ip tunnel del ${DEVICE}
 
-elif [ "${MODE}" == "ipxip" ] || [ "${MODE}" == "ipipx" ]; then
+elif [ "${MODE}" = "ipxip" ] || [ "${MODE}" = "ipipx" ]; then
 
 echo "obs³uga ipxip jeszcze nie zrobiona"
 
index 7c51265b1a6873be35e650057c20dc088381ab7c..6b7bcdda2dcad988878388aee250928cf6a50655 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $Id: tnlup,v 1.11 1999/09/27 10:01:33 misiek Exp $
+#      $Id: tnlup,v 1.12 1999/10/06 16:52:37 kloczek Exp $
 #
 # Author: Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
 #
@@ -29,16 +29,16 @@ then
         exit
 fi
 
-if [ "${IPV6_TUNNELCONFIG}" != "yes" ] && [ "${MODE}" == "sit" ] || \
-   [ "${IPX}" != "yes" ] && [ "${MODE}" == "ipxip" ] || \
-   [ "${IPX}" != "yes" ] && [ "${MODE}" == "ipipx" ]
+if [ "${IPV6_TUNNELCONFIG}" != "yes" ] && [ "${MODE}" = "sit" ] || \
+   [ "${IPX}" != "yes" ] && [ "${MODE}" = "ipxip" ] || \
+   [ "${IPX}" != "yes" ] && [ "${MODE}" = "ipipx" ]
 then
        exit
 fi
 
-if [ "${MODE}" == "gre" ] && [ "`ls -R /lib/modules/\`uname -r\`/ | grep ip_gre.o`" != "" ]; then
+if [ "${MODE}" = "gre" ] && [ "`ls -R /lib/modules/\`uname -r\`/ | grep ip_gre.o`" != "" ]; then
        modprobe -s -k ip_gre
-elif [ "${MODE}" == "ipip" ] && [ "`ls -R /lib/modules/\`uname -r\`/ | grep ipip.o`" != "" ]; then
+elif [ "${MODE}" = "ipip" ] && [ "`ls -R /lib/modules/\`uname -r\`/ | grep ipip.o`" != "" ]; then
        modprobe -s -k ipip
 fi
 
@@ -48,30 +48,30 @@ fi
 [ -n "${TOS}" ] && TOS="tos ${TOS}"
 [ -n "${BIND_DEV}" ] && BIND_DEV="dev ${BIND_DEV}"
 
-if [ "${SEQ}" == "yes" ]; then
+if [ "${SEQ}" = "yes" ]; then
        SEQ=seq
 else
-       [ "${ISEQ}" == "yes" ] && SEQ=iseq
-       [ "${OSEQ}" == "yes" ] && SEQ="${SEQ} oseq"
+       [ "${ISEQ}" = "yes" ] && SEQ=iseq
+       [ "${OSEQ}" = "yes" ] && SEQ="${SEQ} oseq"
 fi
 
-if [ "${CSUM}" == "yes" ]; then
+if [ "${CSUM}" = "yes" ]; then
        CSUM=csum
 else
-        [ "${ICSUM}" == "yes" ] && CSUM=icsum
-        [ "${ICSUM}" == "yes" ] && CSUM="${SEQ} ocsum"
+        [ "${ICSUM}" = "yes" ] && CSUM=icsum
+        [ "${ICSUM}" = "yes" ] && CSUM="${SEQ} ocsum"
 fi
 
-[ "${ISEQ}" == "yes" ] && ISEQ=iseq
-[ "${ISEQ}" == "yes" ] && ISEQ=iseq
-[ "${ISEQ}" == "yes" ] && ISEQ=iseq
-[ "${ISEQ}" == "yes" ] && ISEQ=iseq
+[ "${ISEQ}" = "yes" ] && ISEQ=iseq
+[ "${ISEQ}" = "yes" ] && ISEQ=iseq
+[ "${ISEQ}" = "yes" ] && ISEQ=iseq
+[ "${ISEQ}" = "yes" ] && ISEQ=iseq
 
 [ "${TTL}" != "0" -a "${TTL}" != "inherit" ] && PMTUDISC=yes
 
-if [ "${PMTUDISC}" == "yes" ]; then
+if [ "${PMTUDISC}" = "yes" ]; then
        PMTUDISC=pmtudisc
-elif [ "${PMTUDISC}" == "no" ]; then
+elif [ "${PMTUDISC}" = "no" ]; then
        PMTUDISC=nopmtudisc
 fi
 
@@ -80,15 +80,15 @@ IKEY=""
 OKEY=""
 fi
 
-if [ "${MODE}" == "ipip" ] || [ "${MODE}" == "sit" ]; then
+if [ "${MODE}" = "ipip" ] || [ "${MODE}" = "sit" ]; then
        
        ip tunnel add ${DEVICE} mode ${MODE} local ${LOCALADDR} remote ${REMOTEADDR} ${TTL} ${TOS} ${PMTUDISC} ${BIND_DEV}
 
-elif [ "${MODE}" == "gre" ]; then
+elif [ "${MODE}" = "gre" ]; then
 
        ip tunnel add ${DEVICE} mode ${MODE} local ${LOCALADDR} remote ${REMOTEADDR} ${TTL} ${TOS} ${PMTUDISC} ${BIND_DEV} ${CSUM} ${ISEQ} ${KEY} ${IKEY} ${OKEY}
 
-elif [ "${MODE}" == "ipxip" ] || [ "${MODE}" == "ipipx" ]; then
+elif [ "${MODE}" = "ipxip" ] || [ "${MODE}" = "ipipx" ]; then
 
 echo "obs³uga ipxip jeszcze nie zrobiona"
 
This page took 0.215834 seconds and 4 git commands to generate.