summaryrefslogtreecommitdiff
path: root/initscripts/initscripts-1.0/ramdisk
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-09 09:47:41 +0000
committerChris Larson <clarson@kergoth.com>2004-12-09 09:47:41 +0000
commit2c5b8ec6d95cf68650265941530e5ce38c8dd6d9 (patch)
treebf879bea7ef8517ba8c3d1286ef300401d3d484c /initscripts/initscripts-1.0/ramdisk
parent101e2f1623def0a355d20aacb8bd93810703e834 (diff)
Merge oe-devel@oe-devel.bkbits.net:openembedded
into hyperion.kergoth.com:/home/kergoth/code/openembedded 2004/12/09 03:39:39-06:00 kergoth.com!kergoth Break people's builds again.. this time moving the packages into a packages/ subdir to clean things up a bit. BKrev: 41b81f3dvlp3rU7_8MUXLcI8LDdDoA
Diffstat (limited to 'initscripts/initscripts-1.0/ramdisk')
-rw-r--r--initscripts/initscripts-1.0/ramdisk46
1 files changed, 0 insertions, 46 deletions
diff --git a/initscripts/initscripts-1.0/ramdisk b/initscripts/initscripts-1.0/ramdisk
deleted file mode 100644
index 192c212527..0000000000
--- a/initscripts/initscripts-1.0/ramdisk
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-
-. /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."
- exit
-fi
-
-RAM_MTD_NO=`cat /proc/mtd | grep mtdram | tail -n 1 | cut -d: -f1 | cut -dd -f2`
-if test -z "$RAM_MTD_NO"; then exit 0; fi
-
-if test -e /dev/mtdblock/0
-then
- RAM_MTD=/dev/mtd/$RAM_MTD_NO
- RAM_MTDBLK=/dev/mtdblock/$RAM_MTD_NO
-else
- RAM_MTD=/dev/mtd$RAM_MTD_NO
- RAM_MTDBLK=/dev/mtdblock$RAM_MTD_NO
-fi
-
-RAM_MNTPT=/mnt/ram
-RAM_MTD_SIZE_HEX=`cat /proc/mtd | grep mtdram | tail -n 1 | cut -d" " -f 2`
-RAM_MTD_SIZE=`dc 0x$RAM_MTD_SIZE_HEX 1024 / p`
-OLD_MTD_SIZE=`cat /etc/ramdisk.conf`
-echo $RAM_MTD_SIZE > /etc/ramdisk.conf
-
-if test ! -d "$RAM_MNTPT"; then echo >&2 "Mountpoint $RAM_MNTPT does not exist!"; exit 0; fi
-
-if (test ! -e /etc/.configured) || test "$OLD_MTD_SIZE" != "$RAM_MTD_SIZE"; then
- test "$VERBOSE" != "no" && echo -n "Wiping ramdisk: "
- 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.$FSTYPE $RAM_MTDBLK 2>/dev/null >&2 || exit 1
- test "$VERBOSE" != "no" && echo "$RAM_MTDBLK";
-fi
-
-test "$VERBOSE" != "no" && echo -n "Mounting ramdisk: "
-mount -t $FSTYPE $RAM_MTDBLK $RAM_MNTPT 2>/dev/null >&2 || exit 1
-test "$VERBOSE" != "no" && echo "$RAM_MTDBLK";
-
-exit 0