#!/bin/sh umask 022 PATH=/sbin:/bin:/usr/sbin:/usr/bin insmod /mnt/initfs/lib/modules/2.6.16-omap1/ext2.ko insmod /lib/modules/cifs.ko mount -t proc proc /proc mount -t sysfs sysfs /sys mount -t usbfs usbfs /proc/bus/usb ... I cut out alot of stuff here... then at the bottom of the file ... #osso hotfix #24145 chmod a+w /sys/devices/platform/audio-i2c/mic_enable swapon -a mount /media/mmc2 exit 0
rootfs / rootfs defaults,errors=remount-ro,noatime 0 0 /dev/mmcblk0p1 /media/mmc1 vfat rw,noauto,nodev,noexec,nosuid,utf8,uid=29999 0 0 /dev/mmcblk0p2 /media/mmc2 ext2 rw,noauto 0 0 /dev/mmcblk0p3 swap swap defaults 0 0 //192.168.1.1/NAS /media/NAS cifs rw,user=joe,password=passw0rd 0 0
#!/bin/sh # mount cifs shared folder from the router # use gainroot to become root and relaunch itself if [ `id -u` != 0 ] ; then #if not already root, call itself as root sudo gainroot <<EOF $0 $* EOF exit fi mount /media/NAS
#!/bin/sh # un-mount cifs shared folder from the router # use gainroot to become root and relaunch itself if [ `id -u` != 0 ] ; then #if not already root, call itself as root sudo gainroot <<EOF $0 $* EOF exit fi umount /media/NAS