base-files: remove trailing whitespaces from lib/functions/boot.sh
SVN-Revision: 30776
This commit is contained in:
parent
8ae051799a
commit
6c61d7cbf1
1 changed files with 4 additions and 4 deletions
|
@ -71,7 +71,7 @@ boot_run_hook() {
|
||||||
find_mtd_part() {
|
find_mtd_part() {
|
||||||
local PART="$(grep "\"$1\"" /proc/mtd | awk -F: '{print $1}')"
|
local PART="$(grep "\"$1\"" /proc/mtd | awk -F: '{print $1}')"
|
||||||
local PREFIX=/dev/mtdblock
|
local PREFIX=/dev/mtdblock
|
||||||
|
|
||||||
PART="${PART##mtd}"
|
PART="${PART##mtd}"
|
||||||
[ -d /dev/mtdblock ] && PREFIX=/dev/mtdblock/
|
[ -d /dev/mtdblock ] && PREFIX=/dev/mtdblock/
|
||||||
echo "${PART:+$PREFIX$PART}"
|
echo "${PART:+$PREFIX$PART}"
|
||||||
|
@ -88,11 +88,11 @@ dupe() { # <new_root> <old_root>
|
||||||
cd $1
|
cd $1
|
||||||
echo -n "creating directories... "
|
echo -n "creating directories... "
|
||||||
{
|
{
|
||||||
cd $2
|
cd $2
|
||||||
find . -xdev -type d
|
find . -xdev -type d
|
||||||
echo "./dev ./overlay ./mnt ./proc ./tmp"
|
echo "./dev ./overlay ./mnt ./proc ./tmp"
|
||||||
# xdev skips mounted directories
|
# xdev skips mounted directories
|
||||||
cd $1
|
cd $1
|
||||||
} | xargs mkdir -p
|
} | xargs mkdir -p
|
||||||
echo "done"
|
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
|
mount -t mini_fo -o base=/,sto=$1 "mini_fo:$1" /mnt 2>&- && root=/mnt
|
||||||
else
|
else
|
||||||
mount --bind / /mnt
|
mount --bind / /mnt
|
||||||
mount --bind -o union "$1" /mnt && root=/mnt
|
mount --bind -o union "$1" /mnt && root=/mnt
|
||||||
fi
|
fi
|
||||||
} || {
|
} || {
|
||||||
[ "$3" = "1" ] && {
|
[ "$3" = "1" ] && {
|
||||||
|
|
Loading…
Reference in a new issue