diff options
author | Ovidiu Sas <sip.nslu@gmail.com> | 2008-01-16 14:59:56 +0000 |
---|---|---|
committer | Ovidiu Sas <sip.nslu@gmail.com> | 2008-01-16 14:59:56 +0000 |
commit | 3e876cbe412792ef85ce8ed72b29130e7d396cf1 (patch) | |
tree | 7fd9f35717656e1c7ed684dd4180da4bb4967dd7 /packages/openprotium-init/files/functions | |
parent | 79ea22d203a33c048d1a6d1434f9592f6900852d (diff) | |
parent | b13686f579217a17eaebeef868d02c02775221a8 (diff) |
merge of 'ab1a06b7453ad48a1ad5b4f9ee053cd6a9e04d28'
and 'c794a426d2a55b0c4b5f1f6fee90c8272bd266e9'
Diffstat (limited to 'packages/openprotium-init/files/functions')
-rw-r--r-- | packages/openprotium-init/files/functions | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/packages/openprotium-init/files/functions b/packages/openprotium-init/files/functions index 25832cf3f9..2700551cc4 100644 --- a/packages/openprotium-init/files/functions +++ b/packages/openprotium-init/files/functions @@ -65,21 +65,13 @@ load_functions(){ # use this rather than hard-wiring the device because the partition # table can change - looking in /proc/mtd is more reliable. mtdev(){ - if test $(machine) = storcenter ; then - sed -n 's!^mtd\([0-9][0-9]*\):[^"]*"'"$1"'"$!/dev/mtd/\1!p' /proc/mtd - else sed -n 's!^\(mtd[0-9][0-9]*\):[^"]*"'"$1"'"$!/dev/\1!p' /proc/mtd - fi } # # mtblockdev "name" # as mtdev but output the name of the block (not character) device mtblockdev(){ - if test "$(machine)" = storcenter ; then - sed -n 's!^mtd\([0-9][0-9]*\):[^"]*"'"$1"'"$!/dev/mtdblock/\1!p' /proc/mtd - else sed -n 's!^mtd\([0-9][0-9]*\):[^"]*"'"$1"'"$!/dev/mtdblock\1!p' /proc/mtd - fi } # # mtsize "name" |