1#!/bin/sh 2 3action=$1 4new_firmware=$(config get new_firmware) 5if [ "$action" = "boot" -o "$action" = "start" ]; then 6 streamboost auto_update 7 ret_status=$? 8fi 9#if [ "$new_firmware" = "1" ];then 10# streamboost update 11# ret_status=$? 12# [ "$ret_status" = "0" -o "$ret_status" = "11" ] && config set new_firmware=0 && config commit 13#fi 14[ "$ret_status" = "0" ] && streamboost restart 15 16exit $ret_status 17