/lib/functions.sh: remove jffs2_mark_erase()
authorFelix Fietkau <nbd@openwrt.org>
Mon, 7 Apr 2014 10:29:42 +0000 (10:29 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 7 Apr 2014 10:29:42 +0000 (10:29 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40410

package/base-files/files/lib/functions.sh

index 42886b1466e3d74297373ee982be210c5deca05d..018fe2c12a6635acc38f3fca7d5def39ae433516 100755 (executable)
@@ -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"