Changeset 036ab9a in freewrt for package/base-files


Ignore:
Timestamp:
May 13, 2007, 12:36:00 AM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
84afd92
Parents:
96f261f
Message:

by request of wbx@:

make it possible for users to do
| /etc/init.d/<foo> restart
instead of having to do
| /etc/init.d/S*<foo> restart
by moving the order into a magickal™ comment.

Untested.

Also remove the svn:executable properties, because rcS and rcK will
always call them with /bin/sh, and bump dashvers accordingly.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@2485 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
package/base-files
Files:
3 added
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • package/base-files/Makefile

    r96f261f r036ab9a  
    1010PKG_NAME:=              base-files
    1111PKG_VERSION:=           1.0
    12 PKG_RELEASE:=           24
     12PKG_RELEASE:=           25
    1313WRKDIST=                ${WRKDIR}/base-files
    1414NO_DISTFILES:=          1
  • package/base-files/files/etc/init.d/rcK

    r96f261f r036ab9a  
    11#!/bin/sh
    22export PATH=/bin:/sbin:/usr/bin:/usr/sbin
    3 for i in x /etc/init.d/K*; do
    4         if test x = "$i"; then
    5                 # /etc/rc.shutdown is for rcK what /etc/rc.local is for rcS
    6                 test -e /etc/rc.shutdown && (/bin/sh /etc/rc.shutdown) 2>&1
    7         else
    8                 /bin/sh $i stop 2>&1
    9         fi
    10 done | logger -s -p 6 -t ''
     3{
     4        test -e /etc/rc.shutdown && (/bin/sh /etc/rc.shutdown) 2>&1
     5        grep '^#FWINIT ' /etc/init.d/* | \
     6            sort -rnk2 | \
     7            while read line; do
     8                /bin/sh ${line%%:*} stop 2>&1
     9        done
     10} | logger -s -p 6 -t '' &
  • package/base-files/files/etc/init.d/rcS

    r96f261f r036ab9a  
    11#!/bin/sh
    22export PATH=/bin:/sbin:/usr/bin:/usr/sbin
    3 for i in /etc/init.d/S* x; do
    4         if test x = "$i"; then
    5                 # if /etc/rc.local exists (it will never be created
    6                 # by the ADK, it's only for user customisation), it
    7                 # is run by the bourne shell after all init scripts
    8                 # have been processed.
    9                 test -e /etc/rc.local && (/bin/sh /etc/rc.local) 2>&1
    10         else
    11                 /bin/sh $i autostart 2>&1
    12         fi
    13 done | logger -s -p 6 -t '' &
     3{
     4        grep '^#FWINIT ' /etc/init.d/* | \
     5            sort -nk2 | \
     6            while read line; do
     7                /bin/sh ${line%%:*} autostart 2>&1
     8        done
     9        test -e /etc/rc.local && (/bin/sh /etc/rc.local) 2>&1
     10} | logger -s -p 6 -t '' &
Note: See TracChangeset for help on using the changeset viewer.