aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Thibodeau <kyron@neuralbs.com>2008-08-21 21:04:20 -0400
committerEric Thibodeau <kyron@neuralbs.com>2008-08-21 21:04:20 -0400
commitaadd7fac746eb041aeae3d0a353fb46b1497ee38 (patch)
treeaae05dd5775cdfd31ba0836b3dd888e6c2f4e7e2
parentHardcoding the mounting of /home on the nodes until we implement autofs contr... (diff)
downloadclustering-livecd-aadd7fac746eb041aeae3d0a353fb46b1497ee38.tar.gz
clustering-livecd-aadd7fac746eb041aeae3d0a353fb46b1497ee38.tar.bz2
clustering-livecd-aadd7fac746eb041aeae3d0a353fb46b1497ee38.zip
Finally get quoting right for generating /etc/conf.d/net
* Thanks goes to all Gurus on #gentoo-base: -- dleverton, Uberlord and igli ;)
-rw-r--r--catalyst/nfsroot/2008.0/scripts/nfsroot_setup.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/catalyst/nfsroot/2008.0/scripts/nfsroot_setup.sh b/catalyst/nfsroot/2008.0/scripts/nfsroot_setup.sh
index dd35d58..dcdb9fc 100644
--- a/catalyst/nfsroot/2008.0/scripts/nfsroot_setup.sh
+++ b/catalyst/nfsroot/2008.0/scripts/nfsroot_setup.sh
@@ -48,15 +48,15 @@ openrc_diskless_setup() {
# Using EOF is nice but the vars get interpreted
# /etc/conf.d/net
- cat > /etc/conf.d/net <<-EOF
+ cat > /etc/conf.d/net <<-'EOF'
preup() {
local c=0 i
for i in /sys/devices/system/cpu/cpu[0-9]*; do
- c=\$((\${c} + 1))
+ c=$((${c} + 1))
done
- dhcpcd_eth0="--persistent --userclass=\"\${c}\""
+ dhcpcd_eth0="--persistent --userclass=\"${c}\""
}
EOF
# The above is an alternative which doesn't use wc, thus no superficial process spawning.