Changeset 9a87912 in freewrt for package/base-files/Makefile


Ignore:
Timestamp:
Jul 27, 2006, 2:22:26 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
2314460
Parents:
bc417a4
Message:

add the ability to choose user's default shell, too
XXX untested

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/base-files/Makefile

    rbc417a4 r9a87912  
    44
    55PKG_NAME:=              base-files
    6 PKG_RELEASE:=           8
     6PKG_RELEASE:=           9
    77WRKSRC=                 ${WRKDIR}/base-files
    88
     
    4646endif
    4747
     48ADMIN_SHELL:=           /bin/sh
     49ifeq (${FWRT_BASEFILES_ADMIN_ASH},y)
     50ADMIN_SHELL:=           /bin/ash
     51endif
     52ifeq (${FWRT_BASEFILES_ADMIN_MKSH},y)
     53ADMIN_SHELL:=           /bin/mksh
     54endif
     55ifeq (${FWRT_BASEFILES_ADMIN_HUSH},y)
     56ADMIN_SHELL:=           /bin/hush
     57endif
     58ifeq (${FWRT_BASEFILES_ADMIN_LASH},y)
     59ADMIN_SHELL:=           /bin/lash
     60endif
     61ifeq (${FWRT_BASEFILES_ADMIN_MSH},y)
     62ADMIN_SHELL:=           /bin/msh
     63endif
     64
    4865$(WRKBUILD)/.prepared:
    4966        mkdir -p $(WRKBUILD) $(PACKAGE_DIR)
     
    6683        test -z $(FWRT_RUNTIME_PASSWORD) || \
    6784            $(SED) 's,\*NP\*,$(MD5CRYPT),g' $(IDIR_BASE)/etc/passwd
     85        $(SED) 's!@SHELL@!${ADMIN_SHELL}!g' $(IDIR_BASE)/etc/passwd
    6886        test -z $(FWRT_RUNTIME_SSHKEY) || ( \
    6987            mkdir -p $(IDIR_BASE)/etc/dropbear; \
Note: See TracChangeset for help on using the changeset viewer.