timeout 10
default saved
+#serial --unit=0 --speed=9600
foreground = 6d6963
background = ffffff
#hiddenmenu
splashimage (hd0,0)/grub/splash.xpm.gz
title IPFire (1024x768)
root (hd0,0)
- kernel /vmlinuz-ipfire root=ROOT panic=10 vga=791 MOUNT
+ kernel /vmlinuz-ipfire root=ROOT panic=10 vga=791 @SERIAL@ MOUNT
initrd /ipfirerd.img
savedefault 0
title IPFire (VESA)
root (hd0,0)
- kernel /vmlinuz-ipfire root=ROOT panic=10 MOUNT
+ kernel /vmlinuz-ipfire root=ROOT panic=10 @SERIAL@ MOUNT
initrd /ipfirerd.img
savedefault 1
title IPFire SMP (1024x768)
root (hd0,0)
- kernel /vmlinuz-ipfire-smp root=ROOT panic=10 acpi=off vga=791 MOUNT
+ kernel /vmlinuz-ipfire-smp root=ROOT panic=10 acpi=off vga=791 @SERIAL@ MOUNT
initrd /ipfirerd-smp.img
savedefault 2
title IPFire SMP (VESA)
root (hd0,0)
- kernel /vmlinuz-ipfire-smp root=ROOT panic=10 acpi=off MOUNT
+ kernel /vmlinuz-ipfire-smp root=ROOT panic=10 acpi=off @SERIAL@ MOUNT
initrd /ipfirerd-smp.img
savedefault 3
title IPFire SMP-HT (Intel Pentium 4) (1024x768)
root (hd0,0)
- kernel /vmlinuz-ipfire-smp root=ROOT panic=10 acpi=ht vga=791 MOUNT
+ kernel /vmlinuz-ipfire-smp root=ROOT panic=10 acpi=ht vga=791 @SERIAL@ MOUNT
initrd /ipfirerd-smp.img
savedefault 4
title IPFire SMP-HT (Intel Pentium 4) (VESA)
root (hd0,0)
- kernel /vmlinuz-ipfire-smp root=ROOT panic=10 acpi=ht MOUNT
+ kernel /vmlinuz-ipfire-smp root=ROOT panic=10 acpi=ht @SERIAL@ MOUNT
initrd /ipfirerd-smp.img
savedefault 5
4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
+#7:2345:respawn:/sbin/agetty -I '\033(K' ttyS0 9600 vt100
# End /etc/inittab
[ -f $$i ] && cp -vf $$i /boot/grub; \
done
+ifeq "$(EMBEDDED)" "1"
+ # Enable serial console on embedded build
+ sed -e "s/^#serial/serial/" \
+ -e "s/@SERIAL@/console=ttyS0,9600n8/g" \
+ -i /boot/grub/grub.conf
+else
+ # Remove the placeholder @SERIAL@ on non-embedded build
+ sed -e "s/@SERIAL@//g" \
+ -i /boot/grub/grub.conf
+endif
+
@rm -rf $(DIR_APP)
@$(POSTBUILD)
for i in $(DIR_SRC)/config/etc/*; do \
[ -f $$i ] && cp $$i /etc; \
done
+
+ifeq "$(EMBEDDED)" "1"
+ # Enable serial on console 7
+ sed -e "s/^#7/7/" -i /etc/inittab
+endif
ln -sf /proc/mounts /etc/mtab