Changeset 48558


Ignore:
Timestamp:
2016-01-30T00:19:41+01:00 (2 years ago)
Author:
nbd
Message:

octeon: get rid of /lib/functions/octeon.sh hackery, use sysinfo directly

Fixes sysupgrade

Signed-off-by: Felix Fietkau <nbd@…>

Location:
trunk/target/linux/octeon/base-files
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/octeon/base-files/etc/board.d/01_network

    r47867 r48558  
    55 
    66. /lib/functions/uci-defaults.sh 
    7 . /lib/functions/octeon.sh 
    87 
    98board_config_update 
    109 
    11 board=$(octeon_board_name) 
    12  
    13 case "$board" in 
     10case "$(cat /tmp/sysinfo/board_name)" in 
    1411erlite) 
    1512        ucidef_set_interfaces_lan_wan "eth0" "eth1" 
  • trunk/target/linux/octeon/base-files/lib/preinit/79_move_config

    r43524 r48558  
    33 
    44move_config() { 
    5         . /lib/functions/octeon.sh 
    6  
    7         local board="$(octeon_board_name)" 
    8  
    9         case "$board" in 
     5        case "$(cat /tmp/sysinfo/board_name)" in 
    106                erlite) 
    117                        mount -t vfat /dev/sda1 /mnt 
  • trunk/target/linux/octeon/base-files/lib/upgrade/platform.sh

    r44902 r48558  
    22# Copyright (C) 2014 OpenWrt.org 
    33# 
    4  
    5 . /lib/functions/octeon.sh 
    64 
    75platform_get_rootfs() { 
     
    2523 
    2624platform_copy_config() { 
    27         local board="$(octeon_board_name)" 
     25        local board="$(cat /tmp/sysinfo/board_name)" 
    2826 
    2927        case "$board" in 
     
    6159platform_do_upgrade() { 
    6260        local tar_file="$1" 
    63         local board=$(octeon_board_name) 
     61        local board=$(cat /tmp/sysinfo/board_name) 
    6462        local rootfs="$(platform_get_rootfs)" 
    6563        local kernel= 
     
    8482 
    8583platform_check_image() { 
    86         local board=$(octeon_board_name) 
     84        local board=$(cat /tmp/sysinfo/board_name) 
    8785 
    8886        case "$board" in 
Note: See TracChangeset for help on using the changeset viewer.