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