mirror of
https://github.com/Heleguo/lede.git
synced 2025-12-17 03:11:22 +00:00
base-files: add ipcalc() function
This commit is contained in:
parent
6a853dc56b
commit
afee19facc
@ -315,6 +315,11 @@ include() {
|
||||
done
|
||||
}
|
||||
|
||||
ipcalc() {
|
||||
set -- $(ipcalc.sh "$@")
|
||||
[ $? -eq 0 ] && export -- "$@"
|
||||
}
|
||||
|
||||
find_mtd_index() {
|
||||
local PART="$(grep "\"$1\"" /proc/mtd | awk -F: '{print $1}')"
|
||||
local INDEX="${PART##mtd}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user