Changeset 37015


Ignore:
Timestamp:
2013-06-23T00:09:40+02:00 (5 years ago)
Author:
blogic
Message:

package: fix insmod on install

the procd changes broke the postinst insmod.

Signed-off-by: John Crispin <blogic@…>

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/kernel.mk

    r35713 r37015  
    106106                echo "[ -z \"\$$$$$$$$IPKG_INSTROOT\" ] || exit 0" >> $(2)/CONTROL/postinst; \ 
    107107                echo ". /lib/functions.sh" >> $(2)/CONTROL/postinst; \ 
    108                 echo "load_modules $$$$$$$$modules" >> $(2)/CONTROL/postinst; \ 
     108                echo "insert_modules $$$$$$$$modules" >> $(2)/CONTROL/postinst; \ 
    109109                chmod 0755 $(2)/CONTROL/postinst; \ 
    110110        fi 
  • trunk/package/base-files/files/lib/functions.sh

    r37003 r37015  
    202202                c="$(($c + 1))" 
    203203        done 
     204} 
     205 
     206insert_modules() { 
     207        [ -d /etc/modules.d ] && { 
     208                cd /etc/modules.d 
     209                sed 's/^[^#]/insmod &/' $* | ash 2>&- || : 
     210        } 
    204211} 
    205212 
Note: See TracChangeset for help on using the changeset viewer.