Enable a serial console in /etc/inittab

This commit is contained in:
Albert Hopkins 2010-07-10 19:32:08 -04:00
parent 22f53efe34
commit af260872d8
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ sysconfig: preproot fstab
/sbin/mkswap $(CHROOT)/.swap /sbin/mkswap $(CHROOT)/.swap
echo HOSTNAME=$(HOSTNAME) > $(CHROOT)/etc/conf.d/hostname echo HOSTNAME=$(HOSTNAME) > $(CHROOT)/etc/conf.d/hostname
sed -i 's/^#TIMEZONE=.*/TIMEZONE="$(TIMEZONE)"/' $(CHROOT)/etc/conf.d/clock sed -i 's/^#TIMEZONE=.*/TIMEZONE="$(TIMEZONE)"/' $(CHROOT)/etc/conf.d/clock
sed -i 's/^#s0:/s0:/' $(CHROOT)/etc/inittab
echo 'config_eth0=( "dhcp" )' > $(CHROOT)/etc/conf.d/net echo 'config_eth0=( "dhcp" )' > $(CHROOT)/etc/conf.d/net
chroot $(CHROOT) rc-update add net.eth0 default chroot $(CHROOT) rc-update add net.eth0 default
echo "127.0.0.1 $(HOSTNAME) localhost" > $(CHROOT)/etc/hosts echo "127.0.0.1 $(HOSTNAME) localhost" > $(CHROOT)/etc/hosts