[HOW TO] KODI Linux on Amlogic TV Boxes
#20
AuXBoX ' Wrote:
Code:
#!/bin/sh
#
# Change DNS
#
echo "nameserver AAA.BBB.CCC.DDD" > /root/.xbmc/myResolv.conf

esac

exit $?

Do I replace the whole thing? This is what I see:

Code:
#!/bin/sh
#
# Start the network....
#

case "$1" in
  start)
    echo "Starting network..."

    # bump up the default udp/tcp buffersizes
    sysctl -w net.core.rmem_max=33554432
    sysctl -w net.core.netdev_max_backlog=2000
    sysctl -w net.ipv4.udp_mem='262144 327680 393216'
    sysctl -w net.ipv4.tcp_mem='262144 327680 393216'

    # make sure eth0 and wlan0 interfaces are up
    # xbmc will take care of actually configuring them
    # do it this way to keep from triggering
    # a lengthy dhcp probe at boot.
    ifconfig eth0 up
    ifconfig wlan0 up
  ;;
  stop)
    echo -n "Stopping network..."
    ifconfig eth0 down
    ifconfig wlan0 down
        ;;
  restart|reload)
        "$0" stop
        "$0" start
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac

exit $?
Reply


Messages In This Thread
RE: [HOW TO] XBMC Linux on Geniatech Devices - by superfreak79 - 2013-12-22, 00:10
Falling at the first hurdle - by malcolmbarr - 2014-02-16, 16:17
TVHeadend hangs at channel switch - by vvd214 - 2014-08-29, 09:20
. - by jon4248 - 2015-05-23, 17:00
Logout Mark Read Team Forum Stats Members Help
[HOW TO] KODI Linux on Amlogic TV Boxes5