On 11/12/2013 14:08, Jo-Philipp Wich wrote:
It's working for all file, but ... not for /etc/config/network and
firewall. It seem to be overwritten at first boot. Any idea?
Nothing is supposed to overwrite those files on first boot. There must
be some script doing it. Check /rom/etc/uci/defaults/ .

~ Jow


root@OpenWrt:~# ls -al /rom/etc/uci-defaults/
drwxr-xr-x    2 root     root           299 Dec 10  2013 .
drwxr-xr-x   15 root     root           734 Dec 10  2013 ..
-rwxr-xr-x    1 root     root         12167 Dec  9  2013 01_leds
-rwxr-xr-x    1 root     root          6985 Dec  9  2013 02_network
-rwxr-xr-x 1 root root 1650 Nov 13 2013 03_network-switchX-migration -rwxr-xr-x 1 root root 351 Nov 13 2013 03_network-vlan-migration
-rwxr-xr-x    1 root     root          1181 Nov 13  2013 04_led_migration
-rwxr-xr-x    1 root     root           217 Nov 13  2013 09_fix-seama-header
-rw-r--r--    1 root     root           193 Nov 13  2013 09_fix-trx-header
-rw-r--r--    1 root     root           418 Nov 13  2013 10_migrate-shadow
-rw-r--r--    1 root     root           451 Nov 13  2013 11_migrate-sysctl
-rw-r--r-- 1 root root 377 Nov 13 2013 12_network-generate-ula
-rw-r--r--    1 root     root           661 Dec 10  2013 30_uboot-envtools


(first lines)
root@OpenWrt:~# cat /rom/etc/uci-defaults/02_network
#!/bin/sh
#
# Copyright (C) 2011 OpenWrt.org
#

[ -e /etc/config/network ] && exit 0

touch /etc/config/network

. /lib/functions/uci-defaults.sh
. /lib/ar71xx.sh

[...]


I don't know what's wrong I haven't edited this files.

--
Vivien FRENOT
Ecole Normale Supérieure de Cachan
Direction des Systèmes d'Information
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to