Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#10910 closed defect (fixed)

[uci-defaults]: not all scripts are executed during first boot

Reported by: Damian Kaczkowski <damian.kaczkowski@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Go to your buildroot then run:

make menuconfig

Select:

"Image configuration"

Complie.

Flash you router. Login on router right after successful flash. You will a find non-executed script in uci-defaults:

root@OpenWrt:~# ls -al /etc/uci-defaults/
drwxr-xr-x    1 root     root             0 Jan  1  1970 .
drwxr-xr-x    1 root     root             0 Jan  1  1970 ..
-rw-r--r--    1 root     root           178 Feb  5 21:36 base-files
root@OpenWrt:~# cat /etc/uci-defaults/base-files
uci set 'network.lan.dns='
uci set 'network.lan.proto=static'
uci set 'network.lan.gateway='
uci set 'network.lan.netmask=255.255.255.0'
uci set 'network.lan.ipaddr=192.168.1.1'

This script is executed during second boot instead of first. It could change your lan configuration if you set it to something else during first boot.

Rest scripts are executed as they should.

root@OpenWrt:~# ls -al /overlay/etc/uci-defaults/
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x    8 root     root             0 Jan  1  1970 ..
lrwxrwxrwx    1 root     root            18 Jan  1  1970 inittab-console-fixup -> (overlay-whiteout)
lrwxrwxrwx    1 root     root            18 Jan  1  1970 leds -> (overlay-whiteout)
lrwxrwxrwx    1 root     root            18 Jan  1  1970 migrate-shadow -> (overlay-whiteout)
lrwxrwxrwx    1 root     root            18 Jan  1  1970 network -> (overlay-whiteout)
lrwxrwxrwx    1 root     root            18 Jan  1  1970 ubootenv -> (overlay-whiteout)
lrwxrwxrwx    1 root     root            18 Jan  1  1970 vlan-migration -> (overlay-whiteout)
lrwxrwxrwx    1 root     root            18 Jan  1  1970 wrt160nl -> (overlay-whiteout)

Tested on trunk, target ar71xx (TL-WR1043ND).

Any chance for fix?

Attachments (0)

Change History (4)

comment:1 Changed 6 years ago by anonymous

I am having this same issue.

I am on trunk r30706

Also, this ticket references the same problem:
/ticket/10726.html

comment:2 Changed 6 years ago by Damian Kaczkowski <damian.kaczkowski@…>

Ticket may be closed. Fixed with r31258.

comment:3 Changed 6 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.