Ignore:
Timestamp:
2011-01-31T06:11:38+01:00 (5 years ago)
Author:
cshore
Message:

[package]: block-extroot: Fixed hang when no modules in on either squashfs or jffs2 and suppressed extraneous not found error message when no modules on jffs2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/block-extroot/files/extmount.sh

    r23110 r25259  
    1818        ln -sf /etc/modules.d/* /tmp/overlay/etc/modules.d/* /tmp/extroot_modules/modules.d 
    1919        ln -sf /lib/modules/*/* /tmp/overlay/lib/modules/*/* /tmp/extroot_modules/modules 
    20         local modules="$(grep -l '# May be required for rootfs' /tmp/extroot_modules/modules.d/*)" 
    21         cd /tmp/extroot_modules/modules && { 
     20        local modules="$(grep -l '# May be required for rootfs' /tmp/extroot_modules/modules.d/* 2>/dev/null)" 
     21        cd /tmp/extroot_modules/modules && [ -n "$modules" ] && { 
    2222                cat $modules | sed -e 's/^\([^#].*\)/insmod \.\/\1.ko/'| sh 2>&- || : 
    2323        } 
Note: See TracChangeset for help on using the changeset viewer.