diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-04-26 11:45:55 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-04-26 11:45:55 +0000 |
commit | 08782ae7d8812933ad3f932132955ea1c0fb1e52 (patch) | |
tree | 1808993dc06e0c9a473c2e77236ce5d31039466d /sources/target_skeleton/etc/init.d/S05ramdisk1 | |
parent | 057adc1c84e0082cdf88da23a32bf2098680ff4e (diff) | |
download | buildroot-novena-08782ae7d8812933ad3f932132955ea1c0fb1e52.tar.gz buildroot-novena-08782ae7d8812933ad3f932132955ea1c0fb1e52.zip |
Major rework
Diffstat (limited to 'sources/target_skeleton/etc/init.d/S05ramdisk1')
-rwxr-xr-x | sources/target_skeleton/etc/init.d/S05ramdisk1 | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/sources/target_skeleton/etc/init.d/S05ramdisk1 b/sources/target_skeleton/etc/init.d/S05ramdisk1 deleted file mode 100755 index b8a6d70ad..000000000 --- a/sources/target_skeleton/etc/init.d/S05ramdisk1 +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -# Build a ramdisk to overlay on /dev so we can scribble on it -# all we want without needing rw access to the underlying filesystem - -SIZE=140 -INODES=1000 - -echo -n "Building device ramdisk: " - -/bin/umount /dev/ram1 >/dev/null 2>&1 - -/bin/dd if=/dev/zero of=/dev/ram1 bs=1k count=$SIZE >/dev/null 2>&1 -if [ $? != 0 ] ; then - echo "failed." - exit 1; -fi - -/sbin/mkfs.minix -n30 -i$INODES /dev/ram1 $SIZE >/dev/null 2>&1 -if [ $? != 0 ] ; then - echo "failed." - exit 1; -fi - -/bin/mount /dev/ram1 /mnt -t minix -o rw >/dev/null 2>&1 -if [ $? != 0 ] ; then - echo "failed." - exit 1; -fi - -/bin/cp -a /dev/* /mnt >/dev/null 2>&1 -if [ $? != 0 ] ; then - echo "failed." - exit 1; -fi - -/bin/umount /mnt >/dev/null 2>&1 -if [ $? != 0 ] ; then - echo "failed." - exit 1; -fi - -/bin/mount /dev/ram1 /dev -t minix -o rw >/dev/null 2>&1 -if [ $? != 0 ] ; then - echo "failed." - exit 1; -else - echo "done." -fi - -exit 0 |