Skip to content

Commit 0458659

Browse files
committed
change to use Yun in Dragino MS14
1 parent 9c34ba2 commit 0458659

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

trunk/files/etc/config/system

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
config system
2+
option hostname 'Arduino'
3+
option timezone 'UTC'
4+
option timezone_desc 'Rest of the World (UTC)'
5+
6+
config timeserver 'ntp'
7+
list server '0.openwrt.pool.ntp.org'
8+
list server '1.openwrt.pool.ntp.org'
9+
list server '2.openwrt.pool.ntp.org'
10+
list server '3.openwrt.pool.ntp.org'
11+
option enable_server '0'
12+
13+
config led
14+
option default '0'
15+
option name 'wlan'
16+
option sysfs 'ds:green:wlan'
17+
option trigger 'phy0tpt'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh /etc/rc.common
2+
3+
#start up script for Dragino2
4+
START=99
5+
6+
start() {
7+
echo 24 > /sys/class/gpio/export
8+
echo "high" > /sys/class/gpio/gpio24/direction
9+
ifconfig eth0 172.31.255.254 netmask 255.255.255.252
10+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../init.d/dragino.init

0 commit comments

Comments
 (0)