|
|
@ -21,8 +21,10 @@ |
|
|
|
device="(cat "$__object/parameter/device")" |
|
|
|
device="(cat "$__object/parameter/device")" |
|
|
|
type="(cat "$__object/parameter/type")" |
|
|
|
type="(cat "$__object/parameter/type")" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$type" = "swap" ]; then |
|
|
|
|
|
|
|
echo "mkswap $device" |
|
|
|
|
|
|
|
else |
|
|
|
command="mkfs -t $type" |
|
|
|
command="mkfs -t $type" |
|
|
|
|
|
|
|
|
|
|
|
if [ -f "$__object/parameter/options" ]; then |
|
|
|
if [ -f "$__object/parameter/options" ]; then |
|
|
|
options="(cat "$__object/parameter/options")" |
|
|
|
options="(cat "$__object/parameter/options")" |
|
|
|
command="$command -o '$options'" |
|
|
|
command="$command -o '$options'" |
|
|
@ -32,5 +34,5 @@ if [ -f "$__object/parameter/blocks" ]; then |
|
|
|
blocks="(cat "$__object/parameter/blocks")" |
|
|
|
blocks="(cat "$__object/parameter/blocks")" |
|
|
|
command="$command $blocks" |
|
|
|
command="$command $blocks" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
echo "$command" |
|
|
|
echo "$command" |
|
|
|
|
|
|
|
fi |
|
|
|