Enable a serial console in /etc/inittab
This commit is contained in:
parent
22f53efe34
commit
af260872d8
1
Makefile
1
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue