version 1.1.2.1, 2011/07/21 14:06:05
|
version 1.3, 2013/08/05 13:10:16
|
Line 18 fi
|
Line 18 fi
|
|
|
if [ "${USER}" != "root" ]; then |
if [ "${USER}" != "root" ]; then |
echo |
echo |
echo "ELWIX project is not configured - FS must build under root !?!" | echo "ELWIX project is not configured - install must build under root !?!" |
echo |
echo |
exit 1 |
exit 1 |
fi |
fi |
Line 78 enablejfs()
|
Line 78 enablejfs()
|
boot2dev() |
boot2dev() |
{ |
{ |
echo -n "+++ Installboot to device $1 ... " |
echo -n "+++ Installboot to device $1 ... " |
if disklabel -B $1; then | if disklabel -B -b ${WORLD}/boot/boot -m ${TARGET} ${1}; then |
echo "OK" |
echo "OK" |
else |
else |
echo "Failed!" |
echo "Failed!" |
Line 107 if [ -z $1 ]; then
|
Line 107 if [ -z $1 ]; then
|
echo " If you wish, may apply secondary optional file name argument for other firmware" |
echo " If you wish, may apply secondary optional file name argument for other firmware" |
echo |
echo |
exit 2 |
exit 2 |
fi |
|
|
|
if [ ! -r $2 ]; then |
|
echo |
|
echo "Error:: '$2' ELWIX OS file not found!" |
|
echo |
|
exit 2 |
|
else |
else |
DEV=$(echo $1 | awk '{ |
DEV=$(echo $1 | awk '{ |
if (!($1 ~ /^\//)) |
if (!($1 ~ /^\//)) |
Line 126 else
|
Line 119 else
|
exit 1 |
exit 1 |
fi |
fi |
fi |
fi |
|
|
|
if [ -z "$2" -o ! -r "$2" ]; then |
|
echo |
|
echo "Error:: ELWIX OS tar file '$2' not found!" |
|
echo |
|
exit 2 |
|
fi |
|
|
|
|
initdev $DEV |
initdev $DEV |
|
|