aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-04-07 09:50:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-04-07 09:50:23 +0000
commit6fc0daa25cd19d820c53c5ab74f0ffb41a25d568 (patch)
tree4774e99c025be4611ffb33192be1dbf72de9d695 /package/base-files
parentfbddef3dc96ea1d4121ebcb0fabc8346cc6dd6d0 (diff)
downloadmaster-187ad058-6fc0daa25cd19d820c53c5ab74f0ffb41a25d568.tar.gz
master-187ad058-6fc0daa25cd19d820c53c5ab74f0ffb41a25d568.tar.bz2
master-187ad058-6fc0daa25cd19d820c53c5ab74f0ffb41a25d568.zip
/lib/functions.sh: remove strtok()
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40405 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/lib/functions.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh
index 5e77657f95..30b3f91283 100755
--- a/package/base-files/files/lib/functions.sh
+++ b/package/base-files/files/lib/functions.sh
@@ -363,32 +363,6 @@ macaddr_canonicalize()
printf "%02x:%02x:%02x:%02x:%02x:%02x" 0x${canon// / 0x} 2>/dev/null
}
-strtok() { # <string> { <variable> [<separator>] ... }
- local tmp
- local val="$1"
- local count=0
-
- shift
-
- while [ $# -gt 1 ]; do
- tmp="${val%%$2*}"
-
- [ "$tmp" = "$val" ] && break
-
- val="${val#$tmp$2}"
-
- export ${NO_EXPORT:+-n} "$1=$tmp"; count=$((count+1))
- shift 2
- done
-
- if [ $# -gt 0 -a -n "$val" ]; then
- export ${NO_EXPORT:+-n} "$1=$val"; count=$((count+1))
- fi
-
- return $count
-}
-
-
jffs2_mark_erase() {
local part="$(find_mtd_part "$1")"
[ -z "$part" ] && {