Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # Copyright (C) 2011 O.S. Systems Software LTDA. |
| 3 | # Licensed on MIT |
| 4 | |
| 5 | e2fs_enabled() { |
| 6 | return 0 |
| 7 | } |
| 8 | |
| 9 | e2fs_run() { |
| 10 | filesystems="ext4 ext3 ext2" |
| 11 | |
| 12 | # load modules |
| 13 | for fs in $filesystems; do |
| 14 | load_kernel_module $fs |
| 15 | done |
| 16 | |
| 17 | for fs in $filesystems; do |
| 18 | eval "fs_options=\$bootparam_${fs}" |
| 19 | if [ -n "$fs_options" ]; then |
| 20 | dev=`expr "$fs_options" : '\([^:]*\).*'` |
| 21 | path=`expr "$fs_options" : '[^:]*:\([^:]*\).*'` |
| 22 | |
| 23 | info "Mounting $dev as $fs on $path as $fs..." |
| 24 | mkdir -p $path |
| 25 | mount -t $fs $dev $path |
| 26 | fi |
| 27 | done |
| 28 | } |