Changeset 40426


Ignore:
Timestamp:
2014-04-08T23:17:49+02:00 (4 years ago)
Author:
nbd
Message:

base-files: add back missing function for find_mtd_part to /lib/functions.sh (fixes #15496)

Signed-off-by: Felix Fietkau <nbd@…>

Location:
trunk/package/base-files/files/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/functions.sh

    r40412 r40426  
    167167                . $file 
    168168        done 
     169} 
     170 
     171find_mtd_index() { 
     172        local PART="$(grep "\"$1\"" /proc/mtd | awk -F: '{print $1}')" 
     173        local INDEX="${PART##mtd}" 
     174 
     175        echo ${INDEX} 
    169176} 
    170177 
  • trunk/package/base-files/files/lib/functions/system.sh

    r40411 r40426  
    11# Copyright (C) 2006-2013 OpenWrt.org 
    2  
    3 find_mtd_index() { 
    4         local PART="$(grep "\"$1\"" /proc/mtd | awk -F: '{print $1}')" 
    5         local INDEX="${PART##mtd}" 
    6  
    7         echo ${INDEX} 
    8 } 
    92 
    103find_mtd_chardev() { 
Note: See TracChangeset for help on using the changeset viewer.