Changeset 1f0c6bf in freewrt for package/mksh/ipkg/mksh.postinst


Ignore:
Timestamp:
Jul 17, 2006, 5:53:22 AM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
2a5a554
Parents:
cf0d868
Message:

oops, pasto during all the recent changes
fix hostname determination

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/mksh/ipkg/mksh.postinst

    rcf0d868 r1f0c6bf  
    88if ! grep KSH_VERSION ${IPKG_INSTROOT}/etc/profile >/dev/null 2>&1; then
    99        echo 'if test -n "$KSH_VERSION"; then' >>${IPKG_INSTROOT}/etc/profile
    10         echo '  : ${HOSTNAME:=$(hostname -s </proc/sys/kernel/hostname)}' >>${IPKG_INSTROOT}/etc/profile
     10        echo '  : ${HOSTNAME:=$(</proc/sys/kernel/hostname)}' >>${IPKG_INSTROOT}/etc/profile
    1111        echo '  PS1='\''$(((rv=$?)) && print $rv\|)${USER:=$(id -un)}@${HOSTNAME:=nil}:$(' >>${IPKG_INSTROOT}/etc/profile
    1212        echo '          local pfx=~ wd=${PWD:-$(pwd)}' >>${IPKG_INSTROOT}/etc/profile
Note: See TracChangeset for help on using the changeset viewer.