Permalink
Browse files

changed formatting to use tabs instead of blanks

  • Loading branch information...
PeterPawn committed May 1, 2016
1 parent a28df79 commit 796b841d7f9b8d4c6e26e5b9647cb30ab523c607
Showing with 25 additions and 25 deletions.
  1. +25 −25 update_yaffs2/update_yaffs2
@@ -77,19 +77,19 @@ sleep 5
# wait until tmpfs is mounted on /var
#
while true; do
- grep -q "^tmpfs /var tmpfs" /proc/mounts 2>/dev/null && break
- sleep 2
+ grep -q "^tmpfs /var tmpfs" /proc/mounts 2>/dev/null && break
+ sleep 2
done
#
# check for "uninstall" request
# wait until start has finished in this case, we'll use the running "run_clock"
# as "decision helper"
#
if [ -f $WRAPPER/remove_$CUSTOM.flag ]; then
- while true; do
- pidof run_clock >/dev/null 2>&1 && break
- done
- cat >/var/remove_$CUSTOM.sh <<EOI
+ while true; do
+ pidof run_clock >/dev/null 2>&1 && break
+ done
+ cat >/var/remove_$CUSTOM.sh <<EOI
mount -o remount,rw $WRAPPER
rm $WRAPPER/remove_$CUSTOM.flag
rm $WRAPPER/remove_$CUSTOM.sh
@@ -100,8 +100,8 @@ sync
mount -o remount,ro $WRAPPER
exit 0
EOI
- nohup sh -x /var/remove_$CUSTOM.sh >/var/tmp/remove_$CUSTOM.out 2>&1 &
- exit 0
+ nohup sh -x /var/remove_$CUSTOM.sh >/var/tmp/remove_$CUSTOM.out 2>&1 &
+ exit 0
fi
#
# mount our additional SquashFS image to /var/$CUSTOM
@@ -113,8 +113,8 @@ grep -q "^/dev/loop[0-9] /var/$CUSTOM squashfs" /proc/mounts || exit 1
# wait until lan device was started
#
while true; do
- ifconfig lan 2>/dev/null | grep -q ".*UP.*RUNNING.*" && break
- sleep 2
+ ifconfig lan 2>/dev/null | grep -q ".*UP.*RUNNING.*" && break
+ sleep 2
done
#
# start the init script (etc/init.d/rc.$CUSTOM) of the mounted extension
@@ -151,26 +151,26 @@ sleep 5
# wait until tmpfs is mounted on /var
#
while true; do
- grep -q "^tmpfs /var tmpfs" /proc/mounts 2>/dev/null && break
- sleep 2
+ grep -q "^tmpfs /var tmpfs" /proc/mounts 2>/dev/null && break
+ sleep 2
done
#
# check for "uninstall" request
# wait until start has finished in this case, we'll use the running "run_clock"
# as "decision helper"
#
if [ -f $WRAPPER/remove_$CUSTOM.flag ]; then
- while true; do
- pidof run_clock >/dev/null 2>&1 && break
- done
- mount -o remount,rw $WRAPPER
- rm $WRAPPER/remove_$CUSTOM.flag
- rm $WRAPPER/remove_$CUSTOM.sh
- rm $WRAPPER/filesystem_$CUSTOM.squashfs
- echo "exit 0" >$WRAPPER/sbin/flash_update
- sync
- mount -o remount,ro $WRAPPER
- exit 0 ]
+ while true; do
+ pidof run_clock >/dev/null 2>&1 && break
+ done
+ mount -o remount,rw $WRAPPER
+ rm $WRAPPER/remove_$CUSTOM.flag
+ rm $WRAPPER/remove_$CUSTOM.sh
+ rm $WRAPPER/filesystem_$CUSTOM.squashfs
+ echo "exit 0" >$WRAPPER/sbin/flash_update
+ sync
+ mount -o remount,ro $WRAPPER
+ exit 0 ]
fi
#
# mount our additional SquashFS image to /var/$CUSTOM
@@ -182,8 +182,8 @@ grep -q "^/dev/loop[0-9] /var/$CUSTOM squashfs" /proc/mounts || exit 1
# wait until lan device was started
#
while true; do
- ifconfig lan 2>/dev/null | grep -q ".*UP.*RUNNING.*" && break
- sleep 2
+ ifconfig lan 2>/dev/null | grep -q ".*UP.*RUNNING.*" && break
+ sleep 2
done
#
# start the init script (etc/init.d/rc.$CUSTOM) of the mounted extension

0 comments on commit 796b841

Please sign in to comment.