Changeset 43157


Ignore:
Timestamp:
12/27/18 20:20:49 (5 years ago)
Author:
obi
Message:

fix start.sh oe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/oealliance/var/etc/autostart/start.sh

    r43153 r43157  
    146146{
    147147        startup_progress "$INPUT"
     148
     149        if [ -L /mnt ];then
     150                rm -f /mnt
     151        fi
    148152
    149153        if [ -e /var/etc/.erasemtd ] || [ ! -e /mnt/swapextensions ]; then
     
    497501                if [ -z "$START" ]; then START="$STARTDEFAULT"; fi
    498502
     503                #hissilicon work
     504                if [ -e /proc/stb/info/boxtype ]; then
     505                        stbcheck=`cat /proc/stb/info/boxtype`
     506                        if [ $stbcheck == "sf8008" ] || [ $stbcheck == "ustym4kpro" ] || [ $stbcheck == "cc1" ]; then
     507                                count=`ps -ef |grep libreader |grep -v "grep" |wc -l`
     508                                if [ 0 == $count ];then
     509                                        libreader 720P_50
     510                                fi
     511                        fi
     512                fi
     513                sysctl -p
     514
    499515                case $debug in on|full) echo "[$0] [$INPUT] startGui: ret($ret) $START";; esac
    500516                $START
     
    507523
    508524                ret=$?
     525
     526                #hissilicon work
     527                if [ "$ret" -ne "1" ]; then
     528                        if [ -e /proc/stb/info/boxtype ]; then
     529                                stbcheck=`cat /proc/stb/info/boxtype | cut -c1-2`
     530                                if [ $stbcheck == "u5" ]; then
     531                                        killall -9 showiframe; sleep 5
     532                                fi
     533                                stbcheck=`cat /proc/stb/info/boxtype`
     534                                if [ $stbcheck == "sf8008" ] || [ $stbcheck == "ustym4kpro" ] || [ $stbcheck == "cc1" ] ; then
     535                                        killall -9 libreader; sleep 5
     536                                fi
     537                        fi
     538                fi
     539
    509540                case $ret in
    510541                        1)
Note: See TracChangeset for help on using the changeset viewer.