I have 7300 board setup to fastboot. I want it to run some init.d
scripts when it starts up.. I have changed the linuxrc2 script but it
doesn't seem to be doing what I expect.
#!/bin/sh
export BOOTTIME=`eptime`
startfpga "$@" &
echo "linuxrc2"
if jp 2; then
jp2=1
if jp 4; then
CONSOLE=/dev/ttyAM1
else
CONSOLE=/dev/ttyAM0
fi
else
CONSOLE=/dev/null
fi
mount -o remount,rw /dev/sdcard0/disk0/part3 /mnt/root
/etc/init.d/ArcosServer
/etc/init.d/network start
/etc/init.d/inetd start
/etc/init.d/thttp start
export
PATH=/bin:/mnt/root/bin:/mnt/root/sbin:/mnt/root/usr/bin:/mnt/root/usr/sbin
if [ "$1" = "fastboot" ]; then
(
export ENV=/serial-shinit
if [ "$jp2" -eq "1" ]; then
/bin/sh -i
rm -f /serialsh.pid >/dev/null 2>&1
if [ -e /vidsh.pid ]; then
kill -1 `cat /vidsh.pid`
>/vidsh-aborted
else
>/vidsh-userexited
fi
fi
) <$CONSOLE >$CONSOLE 2>&1
wait
echo
else
wait
fi
if [ "$CONSOLE" = "/dev/null" -o -e /vidsh-userexited ]; then
CONSOLE="/dev/vc/0"
fi
export CONSOLE
(
stty -F $CONSOLE ospeed 115200 >/dev/null 2>&1
echo ">> Booting Linux ..."
) >$CONSOLE
pivot_root . initrd
/bin/mount -n --move initrd/dev /dev
/bin/mount -n --move initrd/proc /proc
exec /usr/sbin/chroot . /bin/sh <<- EOF
exec /sbin/init
EOF
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|