1 # TRC6500 specific mount sequence -*- shell-script -*-
10 mount -t ramfs /dev/ram0 ${rootmnt}
12 # download all tarballs
13 for f in $(echo ${tarballs} | sed 's/,/ /g'); do
14 log_begin_msg "download $f"
15 tftp -b 32764 -g -r $f ${tftpserver}
16 log_begin_msg "Extract $f into ${rootmnt}"
18 tar xzf $f -C ${rootmnt} || exec /bin/sh
22 # remove files predeced by tilde
23 for f in $(find ${rootmnt} -name '~*'); do
24 o=$(echo $f | sed 's/\/~/\//')
25 [ -f $o ] && rm -rf $o $f
28 # execute files predeced by plus
29 for f in $(find ${rootmnt} -name '+*'); do