X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=status_pod.sh;fp=status_pod.sh;h=0000000000000000000000000000000000000000;hb=de93115ab4922bad8986ca891a1f71eb7176b2b9;hp=2431244d5ffc6ea28dd5d3ecc052652b6fe6c823;hpb=b78b4a0b9256d477c3bdb70693a66de3da3865d2;p=pingofdeath.git diff --git a/status_pod.sh b/status_pod.sh deleted file mode 100755 index 2431244..0000000 --- a/status_pod.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -function status_pod() -{ - - local SYSCTL="/sbin/sysctl" - - # Check that IPOD is built into this kernel - local version - version=`$SYSCTL -n net.ipv4.icmp_ipod_version 2> /dev/null` - if [[ $? -ne 0 ]] - then - echo "Not installed" - return 255 - fi - - # Check if it has been enabled - local enabled=`$SYSCTL -n net.ipv4.icmp_ipod_enabled` - echo -n "version $version " - if [[ $enabled -eq 1 ]] - then - echo "Enabled" - else - echo "Disabled" - fi - return $enabled -}