--- /dev/null
+# TRC6500 specific mount sequence -*- shell-script -*-
+
+mountroot ()
+{
+
+ # configure ethernet
+ ipconfig -c dhcp eth0
+ ipconfig -c dhcp eth1
+
+ mount -t ramfs /dev/ram0 ${rootmnt}
+
+ # download all tarballs
+ for f in $(echo ${tarballs} | sed 's/,/ /g'); do
+ log_begin_msg "download $f"
+ tftp -b 32764 -g -r $f ${tftpserver}
+ log_begin_msg "Extract $f into ${rootmnt}"
+ log_end_msg
+ tar xzf $f -C ${rootmnt} || exec /bin/sh
+ rm -f $f
+ done
+
+ # remove files predeced by tilde
+ for f in $(find ${rootmnt} -name '~*'); do
+ o=$(echo $f | sed 's/\/~/\//')
+ [ -f $o ] && rm -rf $o $f
+ done
+
+ # execute files predeced by plus
+ for f in $(find ${rootmnt} -name '+*'); do
+ [ -x $f ] && ./$f
+ [ -f $f ] && rm -f $f
+ done
+}