DESCRIPTON = "A init script that mounts a device and kexecs a new kernel from it." PR = "r7" RDEPENDS = "kexecboot klibc-utils-static-mount klibc-utils-static-sh klibc-utils-static-sleep" # on c7x0 fbangle 0 is landscape, fbangle 90 is portrait (oriented like service menus) FBANGLE = "0" INPUTDEV = "/dev/event0" do_compile() { cat > init.sh << EOF #!/bin/sh /bin/sleep 3 /bin/mount -t proc proc /proc ### # # http://bugs.archlinux.org/task/10381?getfile=2128 # echo "Reading cmdline" read CMDLINE /proc/sys/kernel/printk /usr/bin/kexecboot -a ${FBANGLE} -i ${INPUTDEV} EOF } do_install() { install -m 0755 ${S}/init.sh ${D}/init install -d ${D}/proc install -d ${D}/mnt } PACKAGE_ARCH = "all" FILES_${PN} = "/init /proc /mnt"