#!/bin/sh
#
# from the template file of init.d script
# manage the internal sticky bits
# start or stop services

############
# CHANGELOG
#===========
# 2011/01/25    CRMS00289383    Thanh lam NGUYE?
#               Fix background start
#
################

DELAY=60
. /etc/init.d/rc.config

case "$1" in
    start|"") : "$1"
# CRMS00289383
	( trap "" HUP; [[ ! -f $sanityflag ]] && sleep $DELAY; dbg wl 0x8000008c 0x`dbg rl 0x8000008c | cut -d' ' -f2`>/dev/null)&
# CRMS00289383 END
        RETVAL=0
    ;;
    stop) : "$1"
	dbg wl 0x8000008c 0x`dbg rl 0x8000008c | cut -d' ' -f2`>/dev/null
        RETVAL=0
    ;;
    *) : "$1"
        echo "Usage $0 {start|stop}" >&2
        RETVAL=1
    ;;
esac

exit $RETVAL
