Modify

Opened 10 years ago

Closed 10 years ago

Last modified 4 years ago

#3128 closed defect (worksforme)

startup scripts not working due to missing uci functions or wrappers

Reported by: lorenz.schori@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version:
Keywords: Cc: nbd@…

Description

This is what i get if i try to manually bring up my lan (via serial console) on a Router flashed with an image built today from subversion trunk:

root@(none):/# ifup lan
/sbin/ifup: /sbin/ifdown: line 15: uci_revert_state: not found
/sbin/ifup: /sbin/ifdown: line 18: uci_load: not found
interface not found.

So i suspect that quite some of the (base)-scripts are not yet updatet for the new uci implementation. A quick grep over the base-filesystem gives the following results:

$ grep -r . -e uci_ 2>/dev/null 
./lib/network/config.sh:        uci_set_state network "$config" ifname "$iface"
./lib/config/validate.sh:uci_validate() {(
./sbin/ifdown:uci_revert_state network "$1"
./sbin/sysupgrade:add_uci_conffiles() {
./sbin/sysupgrade:sysupgrade_init_conffiles="add_uci_conffiles"
./sbin/wifi:    uci_set_state wireless "$cfg" up 1
./sbin/wifi:    uci_set_state wireless "$cfg" ifname "$ifname"
./sbin/wifi:    uci_revert_state wireless "$cfg"
./sbin/wifi:            uci_revert_state wireless "$vif"
./etc/functions.sh:     uci_load "$@"
./etc/functions.sh:uci_apply_defaults() {(
./etc/ppp/ip-down:      uci_revert_state network "$PPP_IPPARAM"
./etc/ppp/ip-up:        uci_set_state network "$PPP_IPPARAM" ipaddr "$PPP_LOCAL"
./etc/ppp/ip-up:        uci_set_state network "$PPP_IPPARAM" gateway "$PPP_REMOTE"
./etc/init.d/batman:uci_load batman
./etc/init.d/olsrd:format_uci_varname() {
./etc/init.d/olsrd:                     interface=$(format_uci_varname "$interface")
./etc/init.d/boot:apply_uci_config() {(
./etc/init.d/boot:      uci_apply_defaults
./etc/init.d/boot:      apply_uci_config
./etc/init.d/batmand-adv:uci_load batmand-adv
./etc/hotplug.d/iface/00-netstate:      uci_set_state network "$INTERFACE" up 1 
./usr/share/udhcpc/default.script:                      uci_set_state network "$ifc" ipaddr "$ip"
./usr/share/udhcpc/default.script:                      uci_set_state network "$ifc" netmask "${subnet:-255.255.255.0}"
./usr/share/udhcpc/default.script:                      uci_set_state network "$ifc" dnsdomain "$domain"
./usr/share/udhcpc/default.script:                      uci_set_state network "$ifc" dns "$dns"
./usr/share/udhcpc/default.script:                      uci_set_state network "$ifc" gateway "$router"

Attachments (0)

Change History (4)

comment:1 Changed 10 years ago by nbd

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

Seems like you did not run make oldconfig after updating. The function is provided by the new 'uci' package which is autoselected now.

comment:2 Changed 10 years ago by acoul <alex@…>

  • Resolution worksforme deleted
  • Status changed from closed to reopened

I have disabled vlan functionality and here is the ifup lan output:

vconfig: can't open '/proc/net/vlan/config': No such file or directory
ifconfig: SIOCSIFADDR: No such device

comment:3 Changed 10 years ago by nbd

  • Resolution set to worksforme
  • Status changed from reopened to closed

What does that have to do with this ticket? Please open a separate ticket for this particular issue, preferably with a patch that fixes it.

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.