#!/bin/sh /etc/rc.common
# Example script
# Copyright (C) 2007 OpenWrt.org
START=40
STOP=90

USE_PROCD=1

start_service() {
	#huangjie add for auto change role, re can not start neetstus
	current_role=`uci get role_manager.config.role`
	if [ "$current_role" = "re" ];then
		return 0
	fi

	procd_open_instance
	procd_set_param command /usr/sbin/web_login
	#procd_set_param limits core="unlimited"
	procd_set_param respawn
	procd_close_instance
}
reload_service() {
	rc_procd start_service
	return 0
}
