]> git.ipfire.org Git - people/stevee/network.git/commitdiff
hostapd: Remove unused functions.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Sep 2012 20:16:30 +0000 (20:16 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Sep 2012 20:16:30 +0000 (20:16 +0000)
functions.hostapd

index ea44b0aa987c7460f485b3259fc26cbf99aea496..e3465ab0fdca3dd5e011aa1807616bf0a451866e 100644 (file)
@@ -193,30 +193,3 @@ function hostapd_stop() {
 
        rm -rf $(hostapd_config_dir ${device})
 }
-
-function hostapd_get_pid() {
-       local device=${1}
-
-       assert isset device
-
-       local pid_file="$(hostapd_config_dir ${device})/pid"
-
-       [ -e "${pid_file}" ] || return ${EXIT_ERROR}
-
-       cat ${pid_file} 2>/dev/null
-       return ${EXIT_OK}
-}
-
-function hostapd_is_running() {
-       local device=${1}
-
-       assert isset device
-
-       local pid=$(hostapd_get_pid ${device})
-
-       if isset pid && [ -d "/proc/${pid}" ]; then
-               return ${EXIT_OK}
-       fi
-
-       return ${EXIT_ERROR}
-}