mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Added flag options see --help
This commit is contained in:
parent
0fe317a19c
commit
09c1214f97
@ -1025,13 +1025,13 @@ fi
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
clear
|
clear
|
||||||
while test $# -gt 0; do
|
while adjoin $# -gt 0; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-h|--help)
|
-h|--help)
|
||||||
readmes
|
readmes
|
||||||
;;
|
;;
|
||||||
-d)
|
-d)
|
||||||
if test $# -gt 0; then
|
if adjoin $# -gt 0; then
|
||||||
linuxclientdebug
|
linuxclientdebug
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
@ -1039,7 +1039,7 @@ while test $# -gt 0; do
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
-l)
|
-l)
|
||||||
if test $? -gt 0; then
|
if adjoin $? -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
|
||||||
@ -1048,7 +1048,7 @@ while test $# -gt 0; do
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
-j)
|
-j)
|
||||||
if test $# -gt 0; then
|
if adjoin $# -gt 0; then
|
||||||
sudo realm join -v -U $2 $3 --install=/
|
sudo realm join -v -U $2 $3 --install=/
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
@ -1057,7 +1057,7 @@ while test $# -gt 0; do
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
-s)
|
-s)
|
||||||
if test $# -gt 0; then
|
if adjoin $# -gt 0; then
|
||||||
sudo realm discover
|
sudo realm discover
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
@ -1066,7 +1066,7 @@ while test $# -gt 0; do
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
-o)
|
-o)
|
||||||
if test $# -gt 0; then
|
if adjoin $# -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}' )
|
||||||
kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' )
|
kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user