LICENSE = "GPL"
IGNORE_STRIP_ERRORS = "1"
-PR = "r14"
+PR = "r15"
SRC_URI = "file://altboot-menu \
file://altboot.rc \
file://altboot.func \
file://init.altboot \
- file://altboot.cfg"
+ file://altboot*.cfg"
# S = "${WORKDIR}/files"
install -d ${D}/etc/altboot.rc
install -d ${D}/usr/share/doc/altboot
- install -m 0644 ${WORKDIR}/altboot.cfg ${D}/etc
+ install -m 0644 ${WORKDIR}/altboot*.cfg ${D}/etc
install -m 0644 ${WORKDIR}/altboot.func ${D}/etc
# install -m 0644 ${WORKDIR}/docs/altboot/*.txt ${D}/usr/share/doc/altboot
install -m 0755 ${WORKDIR}/init.altboot ${D}/sbin
INIT_RUNLEVEL="`cat /etc/inittab | sed -n "/^id\:/s/id\:\([0-9]\)\:.*$/\1/p"`"
test -z "$INIT_RUNLEVEL" && INIT_RUNLEVEL=5
-test -e /etc/altboot.cfg && . /etc/altboot.cfg || echo "WARNING: No altboot.cfg found! Check your installation of Altboot!" > /dev/tty1
+case "`uname -r`" in
+2.6*) test -e /etc/altboot-2.6.cfg && . /etc/altboot-2.6.cfg || echo "WARNING: No altboot-2.6.cfg found! Check your installation of Altboot!" > /dev/tty1;;
+2.4*) test -e /etc/altboot-2.4.cfg && . /etc/altboot-2.4.cfg || echo "WARNING: No altboot-2.4.cfg found! Check your installation of Altboot!" > /dev/tty1;;
+*) die "Unknown kernel [uname -r], no configuration found.";;
+esac
C_RED="\033[31m"
C_BLUE="\033[34m"