/lib/functions.sh: remove jffs2_mark_erase()

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

SVN-Revision: 40410
This commit is contained in:
Felix Fietkau 2014-04-07 10:29:42 +00:00
parent d368cc63fe
commit e700dcaf04

View file

@ -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"