comparison sources/toys/run-emulator.sh @ 612:301810fee287

Ahem, _properly_ work around the gentoo thingy.
author Rob Landley <rob@landley.net>
date Sat, 07 Feb 2009 20:35:51 -0600
parents e111467e0476
children 518c8e257b3d
comparison
equal deleted inserted replaced
611:e111467e0476 612:301810fee287
96 # format it ext3? 96 # format it ext3?
97 97
98 if [ ! -z "$HDBMEGS" ] 98 if [ ! -z "$HDBMEGS" ]
99 then 99 then
100 # Some distros don't put /sbin:/usr/sbin in the $PATH for non-root users. 100 # Some distros don't put /sbin:/usr/sbin in the $PATH for non-root users.
101 [ -z "${which mke2fs}" ] && export PATH=/sbin:/usr/sbin:$PATH 101 [ -z "$(which mke2fs)" ] && export PATH=/sbin:/usr/sbin:$PATH
102 102
103 dd if=/dev/zero of="$HDB" bs=1024 seek=$[$HDBMEGS*1024-1] count=1 && 103 dd if=/dev/zero of="$HDB" bs=1024 seek=$[$HDBMEGS*1024-1] count=1 &&
104 mke2fs -b 1024 -F "$HDB" -i 4096 && 104 mke2fs -b 1024 -F "$HDB" -i 4096 &&
105 tune2fs -j -c 0 -i 0 "$HDB" 105 tune2fs -j -c 0 -i 0 "$HDB"
106 106