]> git.nothing2do.fr Git - get-hack-src.git/commitdiff
added stop.sh
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Tue, 30 Jul 2019 21:23:17 +0000 (23:23 +0200)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Tue, 30 Jul 2019 21:23:17 +0000 (23:23 +0200)
get-bin.sh

index 407647a0154a78bd591b1843a13c16670ba177f2..f4f80e6fe193f0d8f233f1229d1c1928f9592102 100755 (executable)
@@ -78,3 +78,14 @@ cat liste|wc -l
 EOF
 chmod +x ~/bin/update-liste.sh
 
+cat <<EOF > ~/bin/stop.sh
+if [ $# = 0 ]
+then
+sudo shutdown now -h
+else
+sudo shutdown $1 -h
+fi
+EOF
+chmod +x ~/bin/stop.sh
+
+