Skip to content
Browse files

use new gentoo config format for network

  • Loading branch information...
1 parent adba174 commit 5375fed8f3d81f84275856542f68755e02137dda @liucougar committed with cougar Apr 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/install_steps.sh
View
4 modules/install_steps.sh
@@ -285,9 +285,9 @@ setup_network_post() {
local ipdhcp="$(echo ${net_device} | cut -d '|' -f2)"
local gateway="$(echo ${net_device} | cut -d '|' -f3)"
if [ "${ipdhcp}" = "dhcp" ] || [ "${ipdhcp}" = "DHCP" ]; then
- echo "config_${device}=( \"dhcp\" )" >> ${chroot_dir}/etc/conf.d/net
+ echo "config_${device}=\"dhcp\"" >> ${chroot_dir}/etc/conf.d/net
else
- echo -e "config_${device}=( \"${ipdhcp}\" )\nroutes_${device}=( \"default via ${gateway}\" )" >> ${chroot_dir}/etc/conf.d/net
+ echo -e "config_${device}=\"${ipdhcp}\"\nroutes_${device}=\"default via ${gateway}\"" >> ${chroot_dir}/etc/conf.d/net
fi
if [ ! -e "${chroot_dir}/etc/init.d/net.${device}" ]; then
spawn_chroot "ln -s net.lo /etc/init.d/net.${device}" || die "could not create symlink for device ${device}"

0 comments on commit 5375fed

Please sign in to comment.
Something went wrong with that request. Please try again.