1#!/bin/sh /etc/rc.common 2START=99 3download_state="$(/bin/config get green_download_enable)" 4have_usb_attached=`cat /tmp/usbdisknum` 5glboot_start() { 6 [ "x$download_state" != "x1" ] && exit 7 echo "there is $have_usb_attached usb disk attached on this device" 8 [ "x$have_usb_attached" == "x0" ] && exit 9 echo "etc/init.d/glboot: startting download ..." 10 /usr/sbin/green_download.sh restart 11} 12 13boot() { 14 glboot_start 15} 16 17glboot_stop(){ 18 /usr/sbin/green_download.sh stop 19 20} 21 22restart(){ 23 /usr/sbin/green_download.sh restart 24} 25