Changeset 887


Ignore:
Timestamp:
Dec 29, 2016, 4:42:38 PM (4 months ago)
Author:
amain
Message:

rootfs: fix/workaround ath9k loading issues. Fixes in rcS.firstboot.

Location:
trunk/debian/rootfs/files
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/rootfs/files/all/etc/init.d/debwrt

    r881 r887  
    1616#                    /lib/modules/debwrt.sub-target are installed when
    1717#                    extracting the target specific debwrt-modules<version>.tar.gz.
     18#
     19#                    Also runs /etc/debwrt/debwrt.sh to perform ealy boot actions and
     20#                    load modules from /etc/modules.early.
    1821### END INIT INFO
    1922
     
    4548        if [ ! -f /etc/debwrt/target.installed ]
    4649        then
    47             mkdir -p /etc/debwrt
     50            if is_ro
     51            then
     52                mount -o remount,rw /
     53                makero=1
     54            fi
     55
    4856            if [ -d /target/${target} ]
    4957            then
    5058                log_action_msg "Extracting target '${target}' specific files from /target/${target}"
    51                 if is_ro
    52                 then
    53                     mount -o remount,rw /
    54                     makero=1
    55                 fi
    5659                tar cf - -C /target/${target} . | tar xf - --warning=no-timestamp -C /
    57                 if [ "${makero}" = "1" ]
    58                 then
    59                     mount -o remount,ro /
    60                 fi
    6160            else
    6261                # no extra files for this target
     62                log_action_msg "Not target ('${target}' specific files from /target/${target}"
    6363                :
    6464            fi
     65
     66            mkdir -p /etc/debwrt
    6567            touch /etc/debwrt/target.installed
     68
     69            if [ "${makero}" = "1" ]
     70            then
     71                mount -o remount,ro /
     72            fi
     73
    6674        fi
    6775    else
    6876        log_warning_msg "No targets configured in /lib/modules/debwrt.target and/or /lib/modules/debwrt.subtarget. Unabl"
     77    fi
     78
     79    if [ -x /etc/debwrt/debwrt.sh ]
     80    then
     81        log_action_msg "Running early DebWrt boot actions (/etc/debwrt/debwrt.sh)"
     82        /etc/debwrt/debwrt.sh
     83    fi
     84
     85    if [ -e /etc/modules.early ]
     86    then
     87        log_action_msg "Early loading of modules (/etc/modules.early)"
     88        cat /etc/modules.early \
     89         | grep -v -e "^#" -v -e "^$" \
     90         | while read module
     91           do
     92               log_action_msg "  - ${module}"
     93               modprobe ${module}
     94           done
    6995    fi
    7096}
  • trunk/debian/rootfs/files/all/etc/init.d/rcS.firstboot

    r880 r887  
    22
    33# Mount root read-write
    4 /bin/mount -n -o remount,rw /dev/root /
     4/bin/mount -n -o remount,rw /
    55
    66# Mount proc - why not? :-)
    77/bin/mount -t proc none /proc
     8
     9# Mount sys
     10mount -t sysfs none /sys
    811
    912# Setup the network
Note: See TracChangeset for help on using the changeset viewer.