diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-06-13 14:20:09 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-06-13 14:20:09 +0000 |
commit | b357bf3297830baa55e8e28c0c0a45535d7f650f (patch) | |
tree | 65bba5ae1968172a33feb99f4b371e56a3f98cec /meta/packages/initscripts | |
parent | 123cce0f789e7581b59c6e6c0967ed6b051fe59e (diff) | |
download | poky-b357bf3297830baa55e8e28c0c0a45535d7f650f.tar.gz |
initscripts: dropped suport for mtdram style ramdisk
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4641 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/initscripts')
-rwxr-xr-x | meta/packages/initscripts/initscripts-1.0/ramdisk | 49 | ||||
-rw-r--r-- | meta/packages/initscripts/initscripts_1.0.bb | 5 |
2 files changed, 1 insertions, 53 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/ramdisk b/meta/packages/initscripts/initscripts-1.0/ramdisk deleted file mode 100755 index 4dfe53cf61..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/ramdisk +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | . /etc/default/rcS | ||
4 | |||
5 | FSTYPE=ext2 | ||
6 | |||
7 | if test ! -e /proc/mtd | ||
8 | then | ||
9 | test "$VERBOSE" != "no" && echo >&2 "/proc not mounted, or mtd support not enabled in kernel." | ||
10 | exit | ||
11 | fi | ||
12 | |||
13 | RAM_MTD_NO=`cat /proc/mtd | grep mtdram | tail -n 1 | cut -d: -f1 | cut -dd -f2` | ||
14 | if test -z "$RAM_MTD_NO"; then exit 0; fi | ||
15 | |||
16 | if test -e /dev/mtdblock/0 | ||
17 | then | ||
18 | RAM_MTD=/dev/mtd/$RAM_MTD_NO | ||
19 | RAM_MTDBLK=/dev/mtdblock/$RAM_MTD_NO | ||
20 | else | ||
21 | RAM_MTD=/dev/mtd$RAM_MTD_NO | ||
22 | RAM_MTDBLK=/dev/mtdblock$RAM_MTD_NO | ||
23 | fi | ||
24 | |||
25 | if grep -q $RAM_MTDBLK /etc/mtab; then echo "Device $RAM_MTDBLK already mounted"; exit 0; fi | ||
26 | if test ! -e $RAM_MTD; then echo >&2 "Mtdram device $RAM_MTD does not exist!"; exit 1; fi | ||
27 | |||
28 | RAM_MNTPT=/mnt/ram | ||
29 | RAM_MTD_SIZE_HEX=`cat /proc/mtd | grep mtdram | tail -n 1 | cut -d" " -f 2` | ||
30 | RAM_MTD_SIZE=`dc 0x$RAM_MTD_SIZE_HEX 1024 / p` | ||
31 | test -e /etc/ramdisk.conf && OLD_MTD_SIZE=`cat /etc/ramdisk.conf` | ||
32 | echo $RAM_MTD_SIZE > /etc/ramdisk.conf | ||
33 | |||
34 | if test ! -d "$RAM_MNTPT"; then echo >&2 "Mountpoint $RAM_MNTPT does not exist!"; exit 0; fi | ||
35 | |||
36 | if (test ! -e /etc/.configured) || test "$OLD_MTD_SIZE" != "$RAM_MTD_SIZE"; then | ||
37 | test "$VERBOSE" != "no" && echo -n "Wiping ramdisk: " | ||
38 | dd if=/dev/zero bs=1024 count=$RAM_MTD_SIZE of=$RAM_MTD 2>/dev/null >&2 || exit 1 | ||
39 | test "$VERBOSE" != "no" && echo "$RAM_MTD"; | ||
40 | test "$VERBOSE" != "no" && echo -n "Creating filesystem on ramdisk: " | ||
41 | mkfs.$FSTYPE $RAM_MTDBLK 2>/dev/null >&2 || exit 1 | ||
42 | test "$VERBOSE" != "no" && echo "$RAM_MTDBLK"; | ||
43 | fi | ||
44 | |||
45 | test "$VERBOSE" != "no" && echo -n "Mounting ramdisk: " | ||
46 | mount -t $FSTYPE $RAM_MTDBLK $RAM_MNTPT 2>/dev/null >&2 || exit 1 | ||
47 | test "$VERBOSE" != "no" && echo "$RAM_MTDBLK"; | ||
48 | |||
49 | exit 0 | ||
diff --git a/meta/packages/initscripts/initscripts_1.0.bb b/meta/packages/initscripts/initscripts_1.0.bb index ac01a42819..17abd0a0ba 100644 --- a/meta/packages/initscripts/initscripts_1.0.bb +++ b/meta/packages/initscripts/initscripts_1.0.bb | |||
@@ -4,11 +4,10 @@ PRIORITY = "required" | |||
4 | DEPENDS = "makedevs" | 4 | DEPENDS = "makedevs" |
5 | RDEPENDS = "makedevs" | 5 | RDEPENDS = "makedevs" |
6 | LICENSE = "GPL" | 6 | LICENSE = "GPL" |
7 | PR = "r107" | 7 | PR = "r108" |
8 | 8 | ||
9 | SRC_URI = "file://functions \ | 9 | SRC_URI = "file://functions \ |
10 | file://halt \ | 10 | file://halt \ |
11 | file://ramdisk \ | ||
12 | file://umountfs \ | 11 | file://umountfs \ |
13 | file://devpts.sh \ | 12 | file://devpts.sh \ |
14 | file://devpts \ | 13 | file://devpts \ |
@@ -60,7 +59,6 @@ do_install () { | |||
60 | install -m 0755 ${WORKDIR}/hostname.sh ${D}${sysconfdir}/init.d | 59 | install -m 0755 ${WORKDIR}/hostname.sh ${D}${sysconfdir}/init.d |
61 | install -m 0755 ${WORKDIR}/mountall.sh ${D}${sysconfdir}/init.d | 60 | install -m 0755 ${WORKDIR}/mountall.sh ${D}${sysconfdir}/init.d |
62 | install -m 0755 ${WORKDIR}/mountnfs.sh ${D}${sysconfdir}/init.d | 61 | install -m 0755 ${WORKDIR}/mountnfs.sh ${D}${sysconfdir}/init.d |
63 | install -m 0755 ${WORKDIR}/ramdisk ${D}${sysconfdir}/init.d | ||
64 | install -m 0755 ${WORKDIR}/reboot ${D}${sysconfdir}/init.d | 62 | install -m 0755 ${WORKDIR}/reboot ${D}${sysconfdir}/init.d |
65 | install -m 0755 ${WORKDIR}/rmnologin ${D}${sysconfdir}/init.d | 63 | install -m 0755 ${WORKDIR}/rmnologin ${D}${sysconfdir}/init.d |
66 | install -m 0755 ${WORKDIR}/sendsigs ${D}${sysconfdir}/init.d | 64 | install -m 0755 ${WORKDIR}/sendsigs ${D}${sysconfdir}/init.d |
@@ -93,7 +91,6 @@ do_install () { | |||
93 | ln -sf ../init.d/umountnfs.sh ${D}${sysconfdir}/rc6.d/S31umountnfs.sh | 91 | ln -sf ../init.d/umountnfs.sh ${D}${sysconfdir}/rc6.d/S31umountnfs.sh |
94 | ln -sf ../init.d/umountfs ${D}${sysconfdir}/rc6.d/S40umountfs | 92 | ln -sf ../init.d/umountfs ${D}${sysconfdir}/rc6.d/S40umountfs |
95 | # udev will run at S55 if installed | 93 | # udev will run at S55 if installed |
96 | ln -sf ../init.d/ramdisk ${D}${sysconfdir}/rcS.d/S30ramdisk | ||
97 | ln -sf ../init.d/reboot ${D}${sysconfdir}/rc6.d/S90reboot | 94 | ln -sf ../init.d/reboot ${D}${sysconfdir}/rc6.d/S90reboot |
98 | ln -sf ../init.d/sendsigs ${D}${sysconfdir}/rc0.d/S20sendsigs | 95 | ln -sf ../init.d/sendsigs ${D}${sysconfdir}/rc0.d/S20sendsigs |
99 | # ln -sf ../init.d/urandom ${D}${sysconfdir}/rc0.d/S30urandom | 96 | # ln -sf ../init.d/urandom ${D}${sysconfdir}/rc0.d/S30urandom |