slitaz-boot-scripts rev 448

init: fix mnt() for loram
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 25 19:12:35 2017 +0100 (2017-12-25)
parents b92b0376b504
children 67c6e0935bba
files init
line diff
     1.1 --- a/init	Mon Dec 25 17:18:52 2017 +0100
     1.2 +++ b/init	Mon Dec 25 19:12:35 2017 +0100
     1.3 @@ -95,7 +95,7 @@
     1.4  
     1.5  
     1.6  mnt() {
     1.7 -	r=$(busybox blkid 2> /dev/null | sed "s|\"||g;/${root//[^a-zA-Z0-9]/.}/!d;s|:.*||;q")
     1.8 +	r=$(busybox blkid 2> /dev/null | grep $root | sed "s|\"||g;s|:.*||;q")
     1.9  	r=${r:-$root}
    1.10  	if [ ! -b $r ]; then
    1.11  		r=${r#/dev/}