diff --git a/fluxion b/fluxion index 1e9bc2b..5654834 100755 --- a/fluxion +++ b/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 > #####################################