bump release number
[pingofdeath.git] / status_pod.sh
1 #!/bin/bash 
2
3 function status_pod()
4 {
5
6     local SYSCTL="/sbin/sysctl"
7
8     # Check that IPOD is built into this kernel
9     local version
10     version=`$SYSCTL -n net.ipv4.icmp_ipod_version 2> /dev/null`
11     if [[ $? -ne 0 ]]
12     then
13         echo "Not installed"
14         return 255
15     fi
16
17     # Check if it has been enabled
18     local enabled=`$SYSCTL -n net.ipv4.icmp_ipod_enabled`
19     echo -n "version $version "
20     if [[ $enabled -eq 1 ]]
21     then 
22         echo "Enabled"
23     else 
24         echo "Disabled"
25     fi
26     return $enabled
27 }