Changeset 37241


Ignore:
Timestamp:
2013-07-11T19:00:21+02:00 (5 years ago)
Author:
blogic
Message:

base-files: run readlink on initscript name before opening services

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/etc/rc.common

    r34866 r37241  
    9191[ -n "$USE_PROCD" ] && { 
    9292        . $IPKG_INSTROOT/lib/functions/procd.sh 
    93  
     93        basescript=$(readlink "$initscript") 
    9494        rc_procd() { 
    95                 procd_open_service "$(basename "$initscript")" "$initscript" 
     95                procd_open_service "$(basename ${basescript:-$initscript})" "$initscript" 
    9696                "$@" 
    9797                procd_close_service 
     
    103103 
    104104        stop() { 
    105                 procd_kill "$(basename "$initscript")" "$1" 
     105                procd_kill "$(basename ${basescript:-$initscript})" "$1" 
    106106        } 
    107107 
Note: See TracChangeset for help on using the changeset viewer.