summaryrefslogtreecommitdiff
path: root/initscripts/initscripts-1.0
diff options
context:
space:
mode:
Diffstat (limited to 'initscripts/initscripts-1.0')
-rw-r--r--initscripts/initscripts-1.0/ramdisk6
1 files changed, 4 insertions, 2 deletions
diff --git a/initscripts/initscripts-1.0/ramdisk b/initscripts/initscripts-1.0/ramdisk
index b1bc8d6992..fc04e33852 100644
--- a/initscripts/initscripts-1.0/ramdisk
+++ b/initscripts/initscripts-1.0/ramdisk
@@ -2,6 +2,8 @@
. /etc/default/rcS
+FSTYPE=ext2
+
if test ! -e /proc/mtd
then
test "$VERBOSE" != "no" && echo >&2 "/proc not mounted, or mtd support not enabled in kernel."
@@ -33,12 +35,12 @@ if (test ! -e /etc/.configured) || test "$OLD_MTD_SIZE" != "$RAM_MTD_SIZE"; then
dd if=/dev/zero bs=1024 count=$RAM_MTD_SIZE of=$RAM_MTD 2>/dev/null >&2 || exit 1
test "$VERBOSE" != "no" && echo "$RAM_MTD";
test "$VERBOSE" != "no" && echo -n "Creating filesystem on ramdisk: "
- mkfs.ext2 $RAM_MTDBLK 2>/dev/null >&2 || exit 1
+ mkfs -t $FSTYPE $RAM_MTDBLK 2>/dev/null >&2 || exit 1
test "$VERBOSE" != "no" && echo "$RAM_MTDBLK";
fi
test "$VERBOSE" != "no" && echo -n "Mounting ramdisk: "
-mount $RAM_MTDBLK $RAM_MNTPT 2>/dev/null >&2 || exit 1
+mount -t $FSTYPE $RAM_MTDBLK $RAM_MNTPT 2>/dev/null >&2 || exit 1
test "$VERBOSE" != "no" && echo "$RAM_MTDBLK";
exit 0