Changeset fc58502 in freewrt for package/mksh


Ignore:
Timestamp:
Jun 18, 2006, 10:24:02 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
0caab3d
Parents:
d01b731
Message:
  • sync with MirBSD src/etc/profile,v 1.20
  • fix hostname

that's it for mksh ;)

ok wbx@

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

File:
1 edited

Legend:

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

    rd01b731 rfc58502  
    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 '  export PS1='\''$(((rv=$?)) && print "$rv|")'\''"\${USER}@$HOSTNAME:"'\''$(typeset dots= path=${1:-${PWD:-$(pwd)}}' >>${IPKG_INSTROOT}/etc/profile
     10        echo '  [[ -z $HOSTNAME ]] && export HOSTNAME=$(</proc/sys/kernel/hostname)' >>${IPKG_INSTROOT}/etc/profile
     11        echo '  export PS1='\''$(((rv=$?)) && print "$rv|")'\''"\${USER}@$HOSTNAME:"'\''$(' >>${IPKG_INSTROOT}/etc/profile
     12        echo '          typeset tilde=~ path=${1:-${PWD:-$(pwd)}}' >>${IPKG_INSTROOT}/etc/profile
     13        echo '          typeset dots= path2=${path#$tilde}' >>${IPKG_INSTROOT}/etc/profile
     14        echo '          [[ $path2 = $path || -z $tilde || $tilde = / ]] || path='~'$path2' >>${IPKG_INSTROOT}/etc/profile
    1115        echo '          let cmax="${COLUMNS:-80} / 3"' >>${IPKG_INSTROOT}/etc/profile
    1216        echo '          (( cmax < 7 )) && let cmax=7' >>${IPKG_INSTROOT}/etc/profile
Note: See TracChangeset for help on using the changeset viewer.