Changeset 887
- Timestamp:
- Dec 29, 2016, 4:42:38 PM (6 years ago)
- 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 16 16 # /lib/modules/debwrt.sub-target are installed when 17 17 # 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. 18 21 ### END INIT INFO 19 22 … … 45 48 if [ ! -f /etc/debwrt/target.installed ] 46 49 then 47 mkdir -p /etc/debwrt 50 if is_ro 51 then 52 mount -o remount,rw / 53 makero=1 54 fi 55 48 56 if [ -d /target/${target} ] 49 57 then 50 58 log_action_msg "Extracting target '${target}' specific files from /target/${target}" 51 if is_ro52 then53 mount -o remount,rw /54 makero=155 fi56 59 tar cf - -C /target/${target} . | tar xf - --warning=no-timestamp -C / 57 if [ "${makero}" = "1" ]58 then59 mount -o remount,ro /60 fi61 60 else 62 61 # no extra files for this target 62 log_action_msg "Not target ('${target}' specific files from /target/${target}" 63 63 : 64 64 fi 65 66 mkdir -p /etc/debwrt 65 67 touch /etc/debwrt/target.installed 68 69 if [ "${makero}" = "1" ] 70 then 71 mount -o remount,ro / 72 fi 73 66 74 fi 67 75 else 68 76 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 69 95 fi 70 96 } -
trunk/debian/rootfs/files/all/etc/init.d/rcS.firstboot
r880 r887 2 2 3 3 # Mount root read-write 4 /bin/mount -n -o remount,rw / dev/root /4 /bin/mount -n -o remount,rw / 5 5 6 6 # Mount proc - why not? :-) 7 7 /bin/mount -t proc none /proc 8 9 # Mount sys 10 mount -t sysfs none /sys 8 11 9 12 # Setup the network
Note: See TracChangeset
for help on using the changeset viewer.