3 # ============================================================================
5 # Copyright (C) THALES. All rights reserved
6 # Author: Thomas Perennou (Viveris Technologies)
8 # ============================================================================
11 # Provides: waitswithes
12 # Required-Start: $network
15 # Default-Start: 2 3 4 5
17 # Short-Description: Wait switches
18 # Description: Wait for all switches are ready for running
22 SCRIPT
=/opt
/trc6500
/script
/check_switches.sh
25 PATH
=/sbin
:/usr
/sbin
:/bin
:/usr
/bin
26 [ -f /etc
/default
/waitswitches
] && .
/etc
/default
/waitswitches
27 [ -x $SCRIPT ] ||
exit 1
28 [ "$ENABLE" = "yes" ] ||
exit 0
30 .
/lib
/lsb
/init-functions
33 log_action_msg
"Wait all switches"
34 $SCRIPT -t $TIMEOUT -w
39 echo "$(basename $0), version $VER"
44 restart|reload|force-reload
)
45 echo "Error: argument '$1' not supported" >&2
52 echo "Usage: $0 start|stop" >&2
57 # vim:set tabstop=4 expandtab shiftwidth=4: