source /etc/profile.d/RkEnv.sh
|
|
case "$1" in
|
start)
|
aplay /usr/lib/silence.wav
|
source /oem/RkLunch.sh
|
#recovery test
|
if [ -e "/oem/rockchip_test/auto_reboot.sh" ]; then
|
mkdir /data/cfg/rockchip_test
|
cp /oem/rockchip_test/auto_reboot.sh /data/cfg/rockchip_test
|
fi
|
source /data/cfg/rockchip_test/auto_reboot.sh &
|
;;
|
stop)
|
printf "stop finished\n"
|
;;
|
*)
|
echo "Usage: $0 {start|stop}"
|
exit 1
|
;;
|
esac
|
exit 0
|