/lib/functions.sh: remove jffs2_mark_erase()
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40410
This commit is contained in:
parent
d368cc63fe
commit
e700dcaf04
1 changed files with 0 additions and 9 deletions
|
@ -331,15 +331,6 @@ macaddr_canonicalize()
|
||||||
printf "%02x:%02x:%02x:%02x:%02x:%02x" 0x${canon// / 0x} 2>/dev/null
|
printf "%02x:%02x:%02x:%02x:%02x:%02x" 0x${canon// / 0x} 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
jffs2_mark_erase() {
|
|
||||||
local part="$(find_mtd_part "$1")"
|
|
||||||
[ -z "$part" ] && {
|
|
||||||
echo Partition not found.
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
echo -e "\xde\xad\xc0\xde" | mtd -qq write - "$1"
|
|
||||||
}
|
|
||||||
|
|
||||||
group_add() {
|
group_add() {
|
||||||
local name="$1"
|
local name="$1"
|
||||||
local gid="$2"
|
local gid="$2"
|
||||||
|
|
Loading…
Reference in a new issue