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