add check for X session
This commit is contained in:
parent
037ac05e99
commit
0adb4fae32
5
fluxion
5
fluxion
|
@ -13,6 +13,11 @@ if [[ $EUID -ne 0 ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "${DISPLAY:-}" ]; then
|
||||
echo -e "\e[1;31mThe script should be executed inside a X (graphical) session."$transparent""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
clear
|
||||
|
||||
##################################### < CONFIGURATION > #####################################
|
||||
|
|
Loading…
Reference in New Issue