aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.