From: Felix Fietkau Date: Mon, 7 Apr 2014 10:29:42 +0000 (+0000) Subject: /lib/functions.sh: remove jffs2_mark_erase() X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;ds=sidebyside;h=f665ab1d6195804d818f57d6431e9a6de340f031;p=openwrt%2Fsvn-archive%2Farchive.git /lib/functions.sh: remove jffs2_mark_erase() Signed-off-by: Felix Fietkau SVN-Revision: 40410 --- diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index 42886b1466..018fe2c12a 100755 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -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"