From: Michael Tremer Date: Sun, 17 May 2009 11:53:35 +0000 (+0200) Subject: Moved code block that enables serial console on embedded builds. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e994c3bc3a4eda8df46aa76a483a117c00eaf6c4;p=ipfire-3.x.git Moved code block that enables serial console on embedded builds. --- diff --git a/lfs/stage2 b/lfs/stage2 index 3dd122920..ac46d476f 100644 --- a/lfs/stage2 +++ b/lfs/stage2 @@ -102,11 +102,6 @@ $(OBJECT): $(objects) cp -vf $$i /etc/grsec; \ done -ifeq "$(EMB)" "1" - # Enable serial on console 7 - sed -e "s/^#7/7/" -i /etc/inittab -endif - touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} #chgrp -v utmp /var/run/utmp /var/log/lastlog chmod -v 664 /var/run/utmp /var/log/lastlog diff --git a/lfs/sysvinit b/lfs/sysvinit index 6bc8c69e0..7603716f1 100644 --- a/lfs/sysvinit +++ b/lfs/sysvinit @@ -73,6 +73,14 @@ $(OBJECT): $(objects) src/init.c cd $(DIR_APP) && make $(PARALLELISMFLAGS) -C src cd $(DIR_APP) && make -C src install + + # Install /etc/inittab cp -vf $(DIR_CONFIG)/$(PKG_NAME)/inittab /etc + +ifeq "$(EMB)" "1" + # Enable serial on console 7 + sed -e "s/^#7/7/" -i /etc/inittab +endif + @rm -rf $(DIR_APP) @$(POSTBUILD)