Replace pidof with pgrep to have regex
This commit is contained in:
parent
93ea90bfd5
commit
a5474bd976
2
zlogin
2
zlogin
|
@ -64,7 +64,7 @@ if [ ${USER} != "root" ] && [ $(command -v startx) ]; then
|
|||
# no ~/.noxorg file exist
|
||||
if [ -z "${SSH_TTY}" ] &&
|
||||
[ ! -f "${HOME}/.noxorg" ] &&
|
||||
! pidof "/usr/lib/xorg/Xorg" ; then
|
||||
! pgrep --full -- "/usr/lib/xorg/Xorg|/usr/lib/Xorg" ; then
|
||||
echo "Aucune session X11 détectée, voulez vous en lancer une ? [O|n]"
|
||||
getc start_x
|
||||
if [ `echo "$start_x" | grep "n"` ];then
|
||||
|
|
Loading…
Reference in New Issue