3 # ============================================================================
5 # Copyright (C) THALES. All rights reserved
6 # Author: Thomas Perennou (Viveris Technologies)
8 # ============================================================================
11 # Provides: waitswitches
12 # Required-Start: $network
17 # Short-Description: Wait switches
18 # Description: Wait for all switches are ready for running
22 SCRIPTS
=/opt
/script
/check_switches.sh
/opt
/trc6500
/script
/check_switches.sh
26 PATH
=/sbin
:/usr
/sbin
:/bin
:/usr
/bin
27 [ -f /etc
/default
/waitswitches
] && .
/etc
/default
/waitswitches
28 for s
in $SCRIPTS; do [ -x $s ] && SCRIPT
=$s; done
29 [ -x "$SCRIPT" ] ||
exit 1
30 [ "$ENABLE" = "yes" ] ||
exit 0
32 .
/lib
/lsb
/init-functions
35 log_action_msg
"Wait all switches"
36 $SCRIPT -t $TIMEOUT -w
41 echo "$(basename $0), version $VER"
46 restart|reload|force-reload
)
47 echo "Error: argument '$1' not supported" >&2
54 echo "Usage: $0 start|stop" >&2
59 # vim:set tabstop=4 expandtab shiftwidth=4: