2 #include INTEL_LICENSE.txt
4 ########################################################################
6 # PlanetLab Ping Of Death
8 ########################################################################
12 # This shell script takes care of starting and stopping Planetlab
15 # The Planetlab POD is a Linux kernel patch that creates the feature
16 # of resetting and rebooting a computer when a particularily
17 # formatted ICMP "ping" commmand is received.
19 # A PlanetLab node's kernel gets a host, mask and hash value through
20 # sysctl's that are performed on the node. The node then looks
21 # for an ICMP packet from a host matching the host/mask and, if the
22 # packet payload is the hash value, the node forces an immediate
27 # May 17, 2003 - Paul Brett <paul.brett@intel.com>
28 # Initial version based on the work of
29 # Robert Adams <robert.adams@intel.com> and EMULAB
32 # description: enable Ping of Death
34 # Source function library.
35 . /etc/init.d/functions
37 # Source networking configuration.
38 . /etc/sysconfig/network
40 #include enable_pod.sh
41 #include disable_pod.sh
42 #include status_pod.sh
44 echo -n "PlanetLab Ping Of Death "
50 # load the POD configuration file
53 # no POD configuration file - failed
55 action $"Missing configuration file $CONF" /bin/false
59 # Check that networking is up.
60 if [[ ${NETWORKING} = "no" ]]
66 # Check the POD parameters
67 if [[ "$HASH" == "" ]]
70 action $"Missing HASH in $CONF" /bin/false
74 if [[ "$IP_SUBNET" == "" ]]
77 action $"Missing IP_SUBNET in $CONF" /bin/false
81 if [[ "$IP_MASK" == "" ]]
84 action $"Missing IP_MASK in $CONF" /bin/false
88 # See how we were called.
91 enable_pod $IP_SUBNET $IP_MASK $IP_HASH
93 if [[ $RETVAL -eq 0 ]]
103 if [[ $RETVAL -eq 0 ]]
107 action $"" /bin/false
120 echo $"Usage: $0 {start|stop|restart|status}"