Skip to content

Instantly share code, notes, and snippets.

@Maxdamantus
Created September 6, 2015 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maxdamantus/c931687be8fdee4cb60c to your computer and use it in GitHub Desktop.
Save Maxdamantus/c931687be8fdee4cb60c to your computer and use it in GitHub Desktop.
#!/bin/sh
FS_MODULES="omap_wdt twl4030_wdt rtc-twl softcursor bitblit font fbcon mmc_core mmc_block omap_hsmmc mbcache ext2 jbd ext3 jbd2 ext4"
MODULE_PATH=/lib/modules/`uname -r` #fixed by kernel-cssu
for mod in $FS_MODULES ; do
if [ -f $MODULE_PATH/$mod.ko ]; then
insmod $MODULE_PATH/$mod.ko
fi
done
set -x
if false; then
mount -t devpts devpts /dev/pts
modprobe g_ether
ifconfig usb0 192.168.30.2 netmask 255.255.255.0
ifconfig -a
/usr/sbin/sshd
fi
watchdog -t 10 /dev/watchdog
watchdog -t 10 /dev/twl4030_wdt
sleep 2
mount -t proc proc /proc
fsck.ext4 /dev/mmcblk0p2
mount -n /dev/mmcblk0p2 -t ext4 -o noatime,commit=20,data=ordered /mnt
#sh
exec chroot /mnt/maemo5-root /sbin/preinit "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment