summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-04-07 10:29:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-04-07 10:29:42 +0000
commite700dcaf0493e0ea159594ba8b7b70ab1242ee18 (patch)
tree768d14af0bb5d9a7f6056553341d03ef0cec2471
parentd368cc63fe4d95935d74661d4f667dbec23c3d01 (diff)
downloadmtk-20170518-e700dcaf0493e0ea159594ba8b7b70ab1242ee18.zip
mtk-20170518-e700dcaf0493e0ea159594ba8b7b70ab1242ee18.tar.gz
mtk-20170518-e700dcaf0493e0ea159594ba8b7b70ab1242ee18.tar.bz2
/lib/functions.sh: remove jffs2_mark_erase()
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40410
-rwxr-xr-xpackage/base-files/files/lib/functions.sh9
1 files changed, 0 insertions, 9 deletions
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh
index 42886b1..018fe2c 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"