slitaz-boot-scripts rev 449
init: fix mnt() for loram (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 25 20:07:48 2017 +0100 (2017-12-25) |
parents | 33718aba8e89 |
children | 4419de82d99c |
files | init |
line diff
1.1 --- a/init Mon Dec 25 19:12:35 2017 +0100 1.2 +++ b/init Mon Dec 25 20:07:48 2017 +0100 1.3 @@ -95,7 +95,7 @@ 1.4 1.5 1.6 mnt() { 1.7 - r=$(busybox blkid 2> /dev/null | grep $root | sed "s|\"||g;s|:.*||;q") 1.8 + r=$(busybox blkid 2> /dev/null | grep "$root[:\"]" | sed 's|:.*||;q') 1.9 r=${r:-$root} 1.10 if [ ! -b $r ]; then 1.11 r=${r#/dev/}