diff --git a/usr/lib/finish-install.d/08rcn-omap b/usr/lib/finish-install.d/08rcn-omap new file mode 100755 index 0000000..6d06fc7 --- /dev/null +++ b/usr/lib/finish-install.d/08rcn-omap @@ -0,0 +1,34 @@ +#!/bin/sh -e +cp /etc/e2fsck.conf /target/etc/e2fsck.conf +cp /etc/finish-install.sh /target/etc/finish-install.sh +chmod a+x /target/etc/finish-install.sh + +if [ -f /etc/rcn.conf ]; then + mkdir -p /target/boot/uboot + echo "/dev/mmcblk0p1 /boot/uboot auto defaults 0 0" >> /target/etc/fstab + + mount /dev/mmcblk0p1 /target/boot/uboot + + #Install kernel image deb + LD_LIBRARY_PATH=/target/lib /target/usr/bin/dpkg-deb -x /target/boot/uboot/linux-image-*_1.0*_armel.deb /target/ + rm -f /target/boot/uboot/linux-image-*_1.0*_armel.deb || true + + #smsc95xx kevent workaround/hack + echo "vm.min_free_kbytes = 8192" >> /target/etc/sysctl.conf + + if [ ! -f /etc/rcn-serial.conf ]; then + cat /target/etc/inittab | grep SERIAL || echo "S:2345:respawn:/sbin/getty 115200 SERIAL" >> /target/etc/inittab + fi + + cp -r /lib/firmware/ /target/lib/ || true + + rm -f /etc/rcn.conf + + mount -o bind /sys /target/sys + chroot /target /bin/bash /etc/finish-install.sh + umount /target/sys + + sync + umount /target/boot/uboot +fi +