diff options
author | Andrew Wilcox <andy@protium.com> | 2008-01-16 01:42:45 +0000 |
---|---|---|
committer | Andrew Wilcox <andy@protium.com> | 2008-01-16 01:42:45 +0000 |
commit | 9d00af25ddaebf2151f6dadbb48e1635d57ba16a (patch) | |
tree | b4cb2ff9ff483cfa2386bb5b0f03307e815894fa /packages/openprotium-init/files/functions | |
parent | 54a688942b4fc93b03cc9c440f5ca8311871b2fd (diff) |
Numerous openprotium fixes as we transition to udev based root
and task based build
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" |