Ticket #103: modules-alias.patch

File modules-alias.patch, 0 bytes (added by roy, 2 years ago)

Allow module aliasing.

  • init.d/modules.in

    diff --git a/init.d/modules.in b/init.d/modules.in
    index da5550c..cb5f59a 100644
    a b start() 
    2323        x=${KV#*.*.} 
    2424        local KV_MICRO=${x%%-*} 
    2525 
    26         local list= x= xx= y= args= cnt=0 
     26        local list= x= xx= y= args= cnt=0 a= 
    2727        for x in "${KV}" \ 
    2828                ${KV_MAJOR}.${KV_MINOR}.${KV_MICRO} \ 
    2929                ${KV_MAJOR}.${KV_MINOR} \ 
    start() 
    3434        [ -z "${list}" ] && list=${modules} 
    3535 
    3636        for x in ${list}; do 
    37                 ebegin "Loading module ${x}" 
    38                 xx=$(shell_var "${x}") 
     37                a=${x#*:} 
     38                if [ "${a}" = "${x}" ]; then 
     39                        ebegin "Loading module ${x}" 
     40                else 
     41                        x=${x%%:*} 
     42                        ebegin "Loading module ${x} ${a}" 
     43                fi 
     44                xx=$(shell_var "${a}") 
    3945                for y in "${KV}" \ 
    4046                        ${KV_MAJOR}.${KV_MINOR}.${KV_MICRO} \ 
    4147                        ${KV_MAJOR}.${KV_MINOR} \