Commit 9cf0a4c96c5e7dea607a71cb6ea59f4a2a8d0c7f

Authored by Silvan Calarco
1 parent 24c9810503
Exists in master

sendsignals: fix appearance of shutdown messages and script cleanup

Showing 1 changed file with 4 additions and 6 deletions Side-by-side Diff

etc/rc.d/init.d/sendsignals
... ... @@ -4,6 +4,7 @@
4 4 # Based on sendsignals script from LFS-3.1 and earlier.
5 5 # Rewritten by Gerard Beekmans <gerard@linuxfromscratch.org>
6 6 # Support for 2.6.x kernels by Davide Madrisan <davide.madrisan@gmail.com>
  7 +# Also modified by Silvan Calarco <silvan.calarco@mambasoft.it>
7 8  
8 9 . /etc/sysconfig/rc
9 10 . $rc_functions
10 11  
11 12  
12 13  
... ... @@ -14,20 +15,17 @@
14 15 killall5 -15
15 16 error_value=$?
16 17 [ "$error_value" = 0 ] && echo_success || echo_failure
  18 + echo
17 19 sleep 2
18 20  
19 21 echo -n "Sending all processes the KILL signal: "
20 22 killall5 -9
21 23 error_value=$?
22 24 [ "$error_value" = 0 ] && echo_success || echo_failure
  25 + echo
23 26 sleep 2
24   -
25   - #echo -n "Removing all unused modules: "
26   - #modprobe -r
27   - #error_value=$?
28   - #echo
29 27 ;;
30   -
  28 +
31 29 *)
32 30 echo "Usage: ${0} {stop}"
33 31 exit 1