#!/bin/sh pid_dnsmasq=`ps | grep dnsmasq | grep -v grep| awk '{print $1;}'` killall hostapd kill -9 $pid_dnsmasq