From b9bb481134f266bd91b1d1b22acfea26f9d28e20 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 23 Sep 2012 20:16:30 +0000 Subject: [PATCH] hostapd: Remove unused functions. --- functions.hostapd | 27 --------------------------- 1 file changed, 27 deletions(-) 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} -} -- 2.47.2