Changeset 27797


Ignore:
Timestamp:
2011-07-27T11:02:10+02:00 (5 years ago)
Author:
nbd
Message:

base-files: warn when calling /etc/init.d/<script> enable and neither START nor STOP is defined

File:
1 edited

Legend:

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

    r24540 r27797  
    4343        name="$(basename "${initscript}")" 
    4444        disable 
     45        [ -n "$START" -o -n "$STOP" ] || { 
     46                echo "/etc/init.d/$name does not have a START or STOP value" 
     47                return 1 
     48        } 
    4549        [ "$START" ] && ln -s "../init.d/$name" "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}" 
    4650        [ "$STOP"  ] && ln -s "../init.d/$name" "$IPKG_INSTROOT/etc/rc.d/K${STOP}${name##K[0-9][0-9]}" 
Note: See TracChangeset for help on using the changeset viewer.