diff options
author | Jakub Jankowski <shasta@toxcorp.com> | 2017-11-21 02:43:39 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2017-11-21 00:07:59 -0600 |
commit | 8b523392901a0ce13583eba09c29d7a1c4fafeba (patch) | |
tree | 974f821a00f1ac12ab02a31d3bea0f80ac0513c2 /rc.inet1 | |
parent | 9a51af88aa234e2ceb6a1daf830f63a11202beb3 (diff) | |
download | slacknetsetup-8b523392901a0ce13583eba09c29d7a1c4fafeba.tar.xz |
rc.inet1: Remove unnecessary $(echo)
Signed-off-by: Robby Workman <rworkman@slackware.com>
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -95,7 +95,7 @@ virtif_destroy() { br_open() { # argument is 'i' - the position of this interface in the IFNAME array. /sbin/ip link add name ${IFNAME[$1]} type bridge - for BRIF in $(echo ${BRNICS[$1]}); do + for BRIF in ${BRNICS[$1]}; do /sbin/ip link set $BRIF down /sbin/ip address add 0.0.0.0 dev $BRIF /sbin/ip link set dev $BRIF master ${IFNAME[$1]} @@ -108,7 +108,7 @@ br_open() { br_close() { /sbin/ip link set dev ${IFNAME[$1]} down # argument is 'i' - the position of this interface in the IFNAME array. - #for BRIF in $(echo ${BRNICS[$1]}); do + #for BRIF in ${BRNICS[$1]}; do for BRIF in $(ls --indicator-style=none /sys/class/net/${IFNAME[$1]}/brif/) do /sbin/ip link set dev $BRIF nomaster @@ -196,7 +196,7 @@ if_up() { # If the dhcpcd call succeeds, add extra IP addresses, if defined, to interface if [ "$?" == "0" ] && [ -n "${IPALIASES[$1]}" ]; then num=0 - for ipalias in $(echo ${IPALIASES[$i]}); do + for ipalias in ${IPALIASES[$i]}; do /sbin/ip address add ${ipalias}/32 dev ${1} label ${1}:${num} ; num=$(($num + 1)) done @@ -213,7 +213,7 @@ if_up() { # Add extra IP addresses, if defined, to interface if [ -n "${IPALIASES[$i]}" ]; then num=0 - for ipalias in $(echo ${IPALIASES[$i]}); do + for ipalias in ${IPALIASES[$i]}; do /sbin/ip address add ${ipalias}/32 dev ${1} label ${1}:${num} ; num=$(($num + 1)) done |