diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-02 22:11:04 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-02 22:11:21 +0100 |
commit | 07c02f672a5708e4dcd9ed9aa3935840916f4c6e (patch) | |
tree | 9ff73b028918c1b7940fcbf31fcf87176c8bd741 /setup-interfaces.in | |
parent | cb474e20d6ff923a8f338f26b93234411065ffc0 (diff) | |
download | alpine-conf-07c02f672a5708e4dcd9ed9aa3935840916f4c6e.zip |
replace deprecated `...` syntax with $(...) in shell scripts
Diffstat (limited to 'setup-interfaces.in')
-rw-r--r-- | setup-interfaces.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in index a1ab283..e57c8ce 100644 --- a/setup-interfaces.in +++ b/setup-interfaces.in @@ -190,7 +190,7 @@ config_iface() { done if [ "$resp" = "yes" ]; then - bridge="br"`echo $iface | sed 's/[^0-9]//g'` + bridge="br$(echo $iface | sed 's/[^0-9]//g')" ask "Name of the bridge you want add $iface to:" $bridge bridge_add_port $resp $iface return @@ -261,7 +261,7 @@ config_iface() { # use ipcalc -m to validate netmask. we dont accept <addr>/mask suffix # so we pass on a dummy mask to ipcalc. while ! ipcalc -s -m $netmask/0 >/dev/null 2>&1; do - netmask=`get_default_mask $address` + netmask=$(get_default_mask $address) ask "Netmask?" $netmask netmask=$resp [ "$netmask" = "abort" ] && return @@ -270,7 +270,7 @@ config_iface() { # use ipcalc -m to validate netmask. we dont accept <addr>/mask suffix # so we pass on a dummy mask to ipcalc. while ! ipcalc -s -m $gateway/0 >/dev/null 2>&1; do - gateway=`get_default_gateway $iface` + gateway=$(get_default_gateway $iface) [ -z "$gateway" ] && gateway=none ask "Gateway? (or 'none')" $gateway gateway=$resp @@ -480,7 +480,7 @@ prompt_for_interfaces() { hostname=$(cat $ROOT/etc/hostname 2>/dev/null) for i in *.conf ; do - iface=`basename $i .conf` + iface=$(basename $i .conf) iface=${iface#[0-9]*~} bridge_ports= bond_slaves= |