-
-
Save Maxdamantus/c931687be8fdee4cb60c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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