Configuration of 30MHz on 16 gon full duplex
[debian6500.git] / master / etc / initramfs-tools / scripts / tftp
CommitLineData
4e802319 1# TRC6500 specific mount sequence -*- shell-script -*-
2
3mountroot ()
4{
4e802319 5 # configure ethernet
6 ipconfig -c dhcp eth0
15d19708 7 ipconfig -t 90 -c dhcp eth1
4e802319 8
9 mount -t ramfs /dev/ram0 ${rootmnt}
10
11 # download all tarballs
12 for f in $(echo ${tarballs} | sed 's/,/ /g'); do
13 log_begin_msg "download $f"
14 tftp -b 32764 -g -r $f ${tftpserver}
1e066512
TPVT
15 log_begin_msg "Extract $f into ${rootmnt}"
16 log_end_msg
17 tar xzf $f -C ${rootmnt} || exec /bin/sh
18 rm -f $f
4e802319 19 done
20
21 # remove files predeced by tilde
22 for f in $(find ${rootmnt} -name '~*'); do
23 o=$(echo $f | sed 's/\/~/\//')
24 [ -f $o ] && rm -rf $o $f
25 done
26
27 # execute files predeced by plus
28 for f in $(find ${rootmnt} -name '+*'); do
29 [ -x $f ] && ./$f
30 [ -f $f ] && rm -f $f
31 done
32}