diff options
author | 2015-01-14 12:02:01 -0600 | |
---|---|---|
committer | 2015-01-14 12:02:01 -0600 | |
commit | 771ced3aa9fd2792b340357981e3dfb3778791a0 (patch) | |
tree | 5ce1ad8210c9d1538e326bc8181751584256f7bb | |
parent | remove execute permissions from most files (diff) | |
download | livecd-tools-771ced3aa9fd2792b340357981e3dfb3778791a0.tar.gz livecd-tools-771ced3aa9fd2792b340357981e3dfb3778791a0.tar.bz2 livecd-tools-771ced3aa9fd2792b340357981e3dfb3778791a0.zip |
Drop the use of bash arrays
-rwxr-xr-x | net-setup | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -181,7 +181,7 @@ write_wireless_conf() { : ;; esac - echo "preferred_aps=( \"${SSID}\" )" >> /etc/conf.d/net + echo "preferred_aps=\"${SSID}\"" >> /etc/conf.d/net echo "associate_order=\"forcepreferredonly\"" >> /etc/conf.d/net fi } @@ -202,10 +202,10 @@ write_net_conf() { GATEWAY=$(tail -n 1 ${iface}.GW) if [ -n "${IP}" -a -n "${BROADCAST}" -a -n "${NETMASK}" ] then - echo "config_${iface}=( \"${IP} broadcast ${BROADCAST} netmask ${NETMASK}\" )" >> /etc/conf.d/net + echo "config_${iface}=\"${IP} broadcast ${BROADCAST} netmask ${NETMASK}\"" >> /etc/conf.d/net if [ -n "${GATEWAY}" ] then - echo "routes_${iface}=( \"default via ${GATEWAY}\" )" >> /etc/conf.d/net + echo "routes_${iface}=\"default via ${GATEWAY}\"" >> /etc/conf.d/net fi fi ;; |