/lib/functions.sh: remove jffs2_mark_erase()

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40410
lede-17.01
Felix Fietkau 2014-04-07 10:29:42 +00:00
parent d368cc63fe
commit e700dcaf04
1 changed files with 0 additions and 9 deletions

View File

@ -331,15 +331,6 @@ macaddr_canonicalize()
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() {
local name="$1"
local gid="$2"