Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if [ `id -u` != 0 ] ; then
- #if not already root, call itself as root
- exec sudo gainroot <<EOF
- exec $0 $*
- EOF
- exit $?
- fi
- rmmod g_file_storage
- rmmod g_ether
- insmod /lib/modules/2.6.21-omap1/g_serial.ko use_acm=1 > /var/log/g_serial.log 2>&1
- dmesg >> /var/log/g_serial.log
- ls -lR /dev >> /var/log/g_serial.log
- lsmod >> /var/log/g_serial.log
- mknod /dev/ttygserial c 127 0
- /sbin/getty -n -f /var/log/g_serial.log -l /bin/sh 115200 /dev/ttygserial >> /var/log/g_serial.log 2>&1 &
- #rmmod g_serial
- ps axf >> /var/log/g_serial.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement