Lines Matching refs:f
25 f=$sysfs/$1
26 echo -e $1 state: "`cat $f/state`" shutdown_status: "`cat $f/shutdown_status`"
35 for f in $sysfs/*
37 _status `basename $f`
46 f=$sysfs/$1
47 echo reset > $f/state
56 for f in $sysfs/*
58 _reset `basename $f`
67 f=$sysfs/$1
68 echo "linux" > $f/bootmode
69 echo "mic/uos.img" > $f/firmware
70 echo "mic/$1.image" > $f/ramdisk
71 echo "boot" > $f/state
80 for f in $sysfs/*
82 _boot `basename $f`
91 f=$sysfs/$1
92 echo shutdown > $f/state
101 for f in $sysfs/*
103 _shutdown `basename $f`
112 f=$sysfs/$1
113 while [ "`cat $f/state`" != "offline" -a "`cat $f/state`" != "online" ]
127 for f in $sysfs/*
129 _wait `basename $f`