Page 1 of 1

what is 01_04_server_replacement.init for?

Posted: Wed Mar 28, 2012 6:25 pm
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!

Re: what is 01_04_server_replacement.init for?

Posted: Wed Mar 28, 2012 6:43 pm
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 ....

Re: what is 01_04_server_replacement.init for?

Posted: Wed Mar 28, 2012 7:18 pm
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?

Re: what is 01_04_server_replacement.init for?

Posted: Wed Mar 28, 2012 7:25 pm
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"