summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/zylonite/env/bin/init
blob: a6bc087b22a2c2079af338fa4d0ffc4909eafa68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

PATH=/env/bin
export PATH

. /env/config
addpart /dev/nand0 $mtdparts
usbserial -s "Zylonite usb gadget"

# Phase1: check for MTD override
mtd_env_override
if [ $? = 0 ]; then
    echo "Switching to custom environment"
    /env/init
    exit
fi

# Phase2: initiate network
dhcp -H zylonite

# Phase3: activate netconsole, broadcast everywhere
netconsole.ip=255.255.255.255
netconsole.active=ioe
netconsole.port=6666