From: Michael Tremer Date: Sun, 23 Sep 2012 20:16:30 +0000 (+0000) Subject: hostapd: Remove unused functions. X-Git-Tag: 005~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9bb481134f266bd91b1d1b22acfea26f9d28e20;p=network.git hostapd: Remove unused functions. --- diff --git a/functions.hostapd b/functions.hostapd index ea44b0aa..e3465ab0 100644 --- a/functions.hostapd +++ b/functions.hostapd @@ -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} -}