slitaz-boot-scripts diff init @ rev 429

network.sh: use only last line of "su -c" output
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Apr 24 12:34:34 2016 +0300 (2016-04-24)
parents 09aba02ed71a
children 018eeb31a351
line diff
     1.1 --- a/init	Mon Feb 15 12:33:39 2016 +0100
     1.2 +++ b/init	Sun Apr 24 12:34:34 2016 +0300
     1.3 @@ -58,7 +58,8 @@
     1.4  
     1.5  quit() {
     1.6  	[ -d /mnt$4/etc ] || return
     1.7 -	[ -n "$4" ] || busybox mount /mnt -o remount,ro
     1.8 +	[ -n "$4" ] || grep -q 'tmpfs /mnt tmpfs' /proc/mounts || 
     1.9 +		busybox mount /mnt -o remount,ro
    1.10  	busybox mount --move /run /mnt/${1:-run}
    1.11  	cat > /run/init <<EOT
    1.12  $2