Added flag options no minimize the menu: see sudo sh ADconnection.sh --help

This commit is contained in:
root 2018-05-22 08:49:02 +02:00
parent dddbbf4abf
commit f229437684

View File

@ -1028,29 +1028,23 @@ while test $# -gt 0; do
readmes
;;
-d)
shift
if test $# -gt 0; then
linuxclientdebug
else
echo ""
exit 1
fi
shift
;;
-l)
shift
if test $# -gt 0; then
if test $? -gt 0; then
DATE=`date +%H:%M`
MENU_FN 2>&1 | sudo tee adconnection.log
else
echo ""
exit 1
fi
shift
;;
-j)
shift
if test $# -gt 0; then
sudo realm join -v -U $2 $3 --install=/
exit
@ -1058,10 +1052,8 @@ while test $# -gt 0; do
echo ""
exit 1
fi
shift
;;
-s)
shift
if test $# -gt 0; then
sudo realm discover
exit
@ -1069,10 +1061,8 @@ while test $# -gt 0; do
echo ""
exit 1
fi
shift
;;
-s)
shift
-o)
if test $# -gt 0; then
desktop=$( sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d '-' -f1 | grep -i desktop )
rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' )
@ -1195,7 +1185,6 @@ fi_auth
echo ""
exit 1
fi
shift
;;
*)
break