Changeset 43400


Ignore:
Timestamp:
02/02/19 04:59:44 (5 years ago)
Author:
obi
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/oealliance/usr/bin/titan.sh

    r43399 r43400  
    4040                        rm /etc/network/interfaces
    4141                        ln -s /mnt/network/interfaces /etc/network/interfaces
     42                fi
     43                if [ ! -L /etc/resolv.conf ];then
     44                        rm /etc/resolv.conf
     45                        ln -s /mnt/network/resolv.conf /etc/resolv.conf
    4246                fi
    4347                /etc/init.d/networking restart
     
    225229}
    226230
    227 startEmu() {
     231startemu()
     232{
    228233        emu.sh "start" "" &
     234}
     235
     236checkemu()
     237{
     238        emuret=`emu.sh check | grep "checkemu running emu="`
     239        if [ -z "$emuret" ]; then
     240                startemu restart
     241        fi
     242}
     243
     244startusercmd()
     245{
     246        if [ -e /mnt/config/usercmd.sh ]; then
     247                /mnt/config/usercmd.sh
     248        fi
     249}
     250
     251startdropcaches()
     252{
     253        echo 3 > /proc/sys/vm/drop_caches
    229254}
    230255
     
    308333}
    309334
    310 startmnt
    311 startplugins
    312 starthotplug
    313 startEmu
    314 startopkg
    315 startdate
    316 startbootlogo
    317 startlibs
    318 starthomedir
    319 startgui
     335case $1 in
     336        first)
     337                startmnt
     338                startplugins
     339                starthotplug
     340                startemu
     341                startopkg
     342                startdate
     343                startbootlogo
     344                startlibs
     345                starthomedir
     346                startgui;;
     347        last)
     348                checkemu
     349                startusercmd;;
     350        reboot)
     351                startdropcaches;;
     352esac
     353
Note: See TracChangeset for help on using the changeset viewer.