Root/package/block-extroot/files/extmount.sh

1#!/bin/sh
2# Copyright 2010 Vertical Communications
3
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6
7determine_root_device() {
8    root_device="$(mount | grep ' / ' | cut -f1 -d\ | grep -v rootfs )"
9}
10
11set_jffs_mp() {
12    jffs="$(awk '/jffs2/ {print $2}' /proc/mounts)"
13}
14
15er_load_modules() {
16    [ -d $ER_ROOT/etc/modules.d ] && {
17        cd $ER_ROOT/etc/modules.d && {
18            local modules="$(grep -l '# May be required for rootfs' *)"
19            cat $modules | sed 's/^\([^#]\)/insmod \1/' | sh 2>&- || :
20        }
21    }
22}
23
24
25

Archive Download this file



interactive