Mettre à jour 'sysconfig.sh'

This commit is contained in:
Jeremy MANSON 2017-10-31 23:13:38 +01:00
parent 55809548d1
commit 36fb9c6409

View File

@ -15,7 +15,7 @@ cp /etc/resolv.conf $CHROOT/etc/resolv.conf
echo "127.0.0.1 localhost" > $CHROOT/etc/hosts
echo "::1 localhost" >> $CHROOT/etc/hosts
echo "127.0.1.1 $MYHOSTNAME.$MYDOMAIN $MYHOSTNAME" >> $CHROOT/etc/hosts
echo "hostname='"'$MYHOSTNAME'"'" > $CHROOT/etc/conf.d/hostname
echo hostname='"'$MYHOSTNAME'"' > $CHROOT/etc/conf.d/hostname
for interfaces in `ls /sys/class/net | sed /lo/d`
do
chroot $CHROOT /bin/bash -c "ln -s /etc/init.d/net.lo /etc/init.d/net.$interfaces"