summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jankowski <shasta@toxcorp.com>2017-11-21 02:43:39 +0100
committerRobby Workman <rworkman@slackware.com>2017-11-21 00:07:59 -0600
commit8b523392901a0ce13583eba09c29d7a1c4fafeba (patch)
tree974f821a00f1ac12ab02a31d3bea0f80ac0513c2
parent9a51af88aa234e2ceb6a1daf830f63a11202beb3 (diff)
downloadslacknetsetup-8b523392901a0ce13583eba09c29d7a1c4fafeba.tar.xz
rc.inet1: Remove unnecessary $(echo)
Signed-off-by: Robby Workman <rworkman@slackware.com>
-rw-r--r--rc.inet18
1 files changed, 4 insertions, 4 deletions
diff --git a/rc.inet1 b/rc.inet1
index 64dbb05..a84299d 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -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