Skip to content

Commit

Permalink
/lib/functions.sh: remove jffs2_mark_erase()
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <[email protected]>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40410 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
nbd committed Apr 7, 2014
1 parent e9de293 commit b3e2c16
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions package/base-files/files/lib/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b3e2c16

Please sign in to comment.