Changeset 2149

Show
Ignore:
Timestamp:
03/10/07 02:29:27 (5 years ago)
Author:
tg
Message:

… and while at it, the second too, it can default on the first

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/package/base-files/files/etc/functions.sh

    r2148 r2149  
    4848        rcconf_exists $2 || { 
    4949                echo "adding service $1 to /etc/rc.conf" 
    50                 printf '%s\t\t# %s\n' "$2=${3:-NO}" "$1" \ 
     50                printf '%s\t\t# %s\n' "${2:-$1}=${3:-NO}" "$1" \ 
    5151                    >>$IPKG_INSTROOT/etc/rc.conf 
    5252        }