From 581a30ec7f0c7b985e46b9b9ceae3fc744931d5a Mon Sep 17 00:00:00 2001 From: Albert Hopkins Date: Fri, 1 Jul 2011 13:58:26 -0400 Subject: [PATCH] Only enable serial console when HEADLESS=YES --- Makefile | 2 +- fstab | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index eafae8b..f0500c4 100644 --- a/Makefile +++ b/Makefile @@ -177,8 +177,8 @@ ifeq ($(VIRTIO),YES) sed -i '/^rc_sys=/d' "$(CHROOT)/etc/rc.conf" echo 'rc_sys=""' >> "$(CHROOT)/etc/rc.conf" endif - sed -i 's/^#s0:/s0:/' $(CHROOT)/etc/inittab ifeq ($(HEADLESS),YES) + sed -i 's/^#s0:/s0:/' $(CHROOT)/etc/inittab sed -ri 's/^(c[0-9]:)/\#\1/' $(CHROOT)/etc/inittab endif echo 'modules="dhclient"' > $(CHROOT)/etc/conf.d/net diff --git a/fstab b/fstab index 1a7a168..4d3632d 100644 --- a/fstab +++ b/fstab @@ -1,4 +1,3 @@ # /dev/sda1 / ext4 noatime 1 1 /.swap none swap sw 0 0 -/dev/shm /dev/shm tmpfs nodev,nosuid,noexec 0 0