#!/bin/sh

enabled=`uci get kuainiao.base.enabled`

if [ "$enabled" -eq 0 ]; then
	/etc/init.d/kuainiao stop
	/etc/init.d/kuainiao disable
else
	/etc/init.d/kuainiao stop
	/etc/init.d/kuainiao start
	/etc/init.d/kuainiao enable
fi