what is 01_04_server_replacement.init for?

Support for C series TVs that all user could ask. Please do not ask a questions at other forums.
Post Reply

address
Posts: 39
Joined: Thu Mar 24, 2011 11:01 am

what is 01_04_server_replacement.init for?

Post by address »

Hello forum,
I'm trying to understand as much as I can about SamyGO Extension Pack. Please can anyone tell me what

Code: Select all

/dtv/usb/sda1/SamyGO/etc/init.d/01_04_server_replacement.init
is for? Is it necessary? The content is:

Code: Select all

#!/bin/sh
#
# ? Copyright 1996-2011, SamyGO
#
# $Id: 01_04_server_replacement.init 1185 2011-08-26 20:17:43Z arris69 $
# 
# . /dtv/SGO.env

DEPLOY_SERVER="" # in testing phase 

case $1 in 
        start)
        [ -z "$DEPLOY_SERVER" ] && exit 
        echo '# /mtd_rwarea/hosts
127.0.0.1       localhost
'${DEPLOY_SERVER}'     infolink.pavv.co.kr
# '${DEPLOY_SERVER}'     devinfolink.pavv.co.kr
'${DEPLOY_SERVER}'     www.samsungotn.net
# '${DEPLOY_SERVER}'     test.samsungotn.net
# '${DEPLOY_SERVER}'     www.samsungrm.net
# '${DEPLOY_SERVER}'     test.samsungrm.net
# end of hosts file' > /mtd_rwarea/hosts

        /bin/mount -o bind /mtd_rwarea/hosts /etc/hosts
        ;;
        stop)
        /bin/umount /etc/hosts
        # and clean resolvers cache, don't care now
        ;;
        status)
        ;;
        *)
        echo "Usage: $0 {start|stop|status}" 1>&2
        exit 0
        ;;
esac
Thankyou!
LE40C630K1PXTZ +PVR over nfs +Encryption Disabled +GEMSTAR GUIDE+ +internet@tv

6eff854bb45fa109df480c5e219c7f95
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: what is 01_04_server_replacement.init for?

Post by arris69 »

address wrote:Hello forum,
I'm trying to understand as much as I can about SamyGO Extension Pack. Please can anyone tell me what

Code: Select all

/dtv/usb/sda1/SamyGO/etc/init.d/01_04_server_replacement.init
is for? Is it necessary?...
it's for internal testing, playing around whatever. the code clearly says what it do...

you can use it to disable otn or forbid your children to play around in smarthub or, or, or ....
address
Posts: 39
Joined: Thu Mar 24, 2011 11:01 am

Re: what is 01_04_server_replacement.init for?

Post by address »

the code clearly says what it do...
Thank you arris69 but it's not so clear for me...

I don't know what does otn mean, could you make some examples?
LE40C630K1PXTZ +PVR over nfs +Encryption Disabled +GEMSTAR GUIDE+ +internet@tv

6eff854bb45fa109df480c5e219c7f95
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: what is 01_04_server_replacement.init for?

Post by arris69 »

address wrote:
the code clearly says what it do...
Thank you arris69 but it's not so clear for me...
then you don't need the script and you can disable it (rename so it gets extension .dis)
I don't know what does otn mean, could you make some examples?

Code: Select all

DEPLOY_SERVER="10.0.0.1"

Code: Select all

DEPLOY_SERVER="192.168.3.23"
hope you got the "point"

Post Reply

Return to “[C] Support”