initscripts: Sync with OE, primarily for better /etc/timestamp handling

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2650 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2007-09-02 14:00:52 +00:00
parent 3cb6c768ef
commit 1cf731b1e3
13 changed files with 539 additions and 126 deletions

View File

@@ -22,6 +22,9 @@ else
RAM_MTDBLK=/dev/mtdblock$RAM_MTD_NO
fi
if grep -q $RAM_MTDBLK /etc/mtab; then echo "Device $RAM_MTDBLK already mounted"; exit 0; fi
if test ! -e $RAM_MTD; then echo >&2 "Mtdram device $RAM_MTD does not exist!"; exit 1; 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`