PREUN
/bin/sh
if [ $1 = 0 ]; then /sbin/service hostapd stop >/dev/null 2>&1 /sbin/chkconfig --del hostapd fi
POSTIN
/bin/sh
/sbin/chkconfig --add hostapd
/bin/sh
if [ $1 = 0 ]; then /sbin/service hostapd stop >/dev/null 2>&1 /sbin/chkconfig --del hostapd fi
/bin/sh
/sbin/chkconfig --add hostapd