Skip to content

Instantly share code, notes, and snippets.

@Akagi201
Created July 7, 2014 12:45
Show Gist options
  • Save Akagi201/b9ff430562949f60931e to your computer and use it in GitHub Desktop.
Save Akagi201/b9ff430562949f60931e to your computer and use it in GitHub Desktop.

/etc/config/easycwmp

config local
	option interface wlan0
	option port 7547
	option ubus_socket /var/run/ubus.sock
	option date_format %FT%T%z
	option username bob
	option password genieacs

config acs
	option scheme http
	option username bob
	option password genieacs
	option hostname  demo3.genieacs.com
	option port  37547
	option path  /openacs/acs
	option parameter_key ''
	option periodic_enable '1'
	option periodic_interval '100'

config device
	option manufacturer easycwmp
	option oui FFFFFF
	option product_class easycwmp
	option serial_number FFFFFF123456
	option hardware_version example_hw_version
	option software_version example_sw_version

config scripts
	# load OpenWrt generic network functions
	list location /lib/functions/network.sh
	# load easycwmp common functions
	list location /usr/share/easycwmp/functions/common
	# easycwmp specific functions
	list location /usr/share/easycwmp/functions/device_info
	list function device_info
	list location /usr/share/easycwmp/functions/lan_device
	list function lan_device
	list location /usr/share/easycwmp/functions/management_server
	list function management_server
	list location /usr/share/easycwmp/functions/wan_device
	list function wan_device

log

root@akopenwrt:~# /etc/init.d/easycwmpd start
config_init_local(53):: easycwmp.@local[0].interface=wlan0
config_init_local(63):: easycwmp.@local[0].port=7547
config_init_local(81):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(69):: easycwmp.@local[0].username=bob
config_init_local(75):: easycwmp.@local[0].password=genieacs
config_init_acs(147):: easycwmp.@acs[0].scheme=http
config_init_acs(153):: easycwmp.@acs[0].username=bob
config_init_acs(159):: easycwmp.@acs[0].password=genieacs
config_init_acs(165):: easycwmp.@acs[0].hostname=demo3.genieacs.com
config_init_acs(175):: easycwmp.@acs[0].port=37547
config_init_acs(181):: easycwmp.@acs[0].path=/openacs/acs
config_init_acs(187):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(193):: easycwmp.@acs[0].periodic_interval=100
Segmentation fault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment