aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-03-02 11:17:30 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-03-02 11:17:30 +0000
commit5511d4ff1a176ecd6d22458ec911e3f27c4c3937 (patch)
tree712687ec229e55e5a2c08fd45481f2ff5cbb5ec7 /package/base-files
parentb0d43f3f2457c2e52060331b741b9308c98ba8a2 (diff)
downloadupstream-5511d4ff1a176ecd6d22458ec911e3f27c4c3937.tar.gz
upstream-5511d4ff1a176ecd6d22458ec911e3f27c4c3937.tar.bz2
upstream-5511d4ff1a176ecd6d22458ec911e3f27c4c3937.zip
base-files: remove trailing whitespaces from lib/functions/boot.sh
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30776 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/files/lib/functions/boot.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/base-files/files/lib/functions/boot.sh b/package/base-files/files/lib/functions/boot.sh
index 6bdd7a1490..8c3f27ba4f 100644
--- a/package/base-files/files/lib/functions/boot.sh
+++ b/package/base-files/files/lib/functions/boot.sh
@@ -71,7 +71,7 @@ boot_run_hook() {
find_mtd_part() {
local PART="$(grep "\"$1\"" /proc/mtd | awk -F: '{print $1}')"
local PREFIX=/dev/mtdblock
-
+
PART="${PART##mtd}"
[ -d /dev/mtdblock ] && PREFIX=/dev/mtdblock/
echo "${PART:+$PREFIX$PART}"
@@ -88,11 +88,11 @@ dupe() { # <new_root> <old_root>
cd $1
echo -n "creating directories... "
{
- cd $2
+ cd $2
find . -xdev -type d
echo "./dev ./overlay ./mnt ./proc ./tmp"
# xdev skips mounted directories
- cd $1
+ cd $1
} | xargs mkdir -p
echo "done"
@@ -131,7 +131,7 @@ fopivot() { # <rw_root> <ro_root> <dupe?>
mount -t mini_fo -o base=/,sto=$1 "mini_fo:$1" /mnt 2>&- && root=/mnt
else
mount --bind / /mnt
- mount --bind -o union "$1" /mnt && root=/mnt
+ mount --bind -o union "$1" /mnt && root=/mnt
fi
} || {
[ "$3" = "1" ] && {