usrmount: do not install, if /sbin/init does not live in /usr

master
Harald Hoyer 2013-07-24 13:41:15 +02:00
parent 7b3ff4e055
commit 1a1c80febe
1 changed files with 3 additions and 0 deletions

View File

@ -3,7 +3,10 @@
# ex: ts=8 sw=4 sts=4 et filetype=sh # ex: ts=8 sw=4 sts=4 et filetype=sh


check() { check() {
local _init
[[ $mount_needs ]] && return 1 [[ $mount_needs ]] && return 1
_init=$(readlink -f /sbin/init)
[[ "$init" == "${init##/usr}" ]] && return 255
return 0 return 0
} }