summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>2015-01-14 12:02:01 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-01-14 12:02:01 -0600
commit771ced3aa9fd2792b340357981e3dfb3778791a0 (patch)
tree5ce1ad8210c9d1538e326bc8181751584256f7bb
parentremove execute permissions from most files (diff)
downloadlivecd-tools-771ced3aa9fd2792b340357981e3dfb3778791a0.tar.gz
livecd-tools-771ced3aa9fd2792b340357981e3dfb3778791a0.tar.bz2
livecd-tools-771ced3aa9fd2792b340357981e3dfb3778791a0.zip
Drop the use of bash arrays
-rwxr-xr-xnet-setup6
1 files changed, 3 insertions, 3 deletions
diff --git a/net-setup b/net-setup
index e8a42b5..e6d2979 100755
--- a/net-setup
+++ b/net-setup
@@ -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
;;