mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Added flag options no minimize the menu: see sudo sh ADconnection.sh --help
This commit is contained in:
parent
dddbbf4abf
commit
f229437684
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user