Ensure dropbear is installed before disabling telnet (#920)
[openwrt.git] / package / base-files / default / etc / functions.sh
index 2abb6f8..f7cb878 100755 (executable)
@@ -77,6 +77,7 @@ config_clear() {
 }
 
 config_load() {
+       CONFIG_SECTION=
        local DIR="./"
        _C=0
        [ \! -e "$1" -a -e "/etc/config/$1" ] && {
@@ -110,3 +111,10 @@ include() {
                . $file
        done
 }
+
+find_mtd_part() {
+       local PART="$(grep "\"$1\"" /proc/mtd | awk -F: '{print $1}')"
+       PART="${PART##mtd}"
+       echo "${PART:+/dev/mtdblock/$PART}"
+}
+
This page took 0.023442 seconds and 4 git commands to generate.