Changeset fc58502 in freewrt for package/mksh
- Timestamp:
- Jun 18, 2006, 10:24:02 PM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 0caab3d
- Parents:
- d01b731
- File:
-
- 1 edited
-
package/mksh/ipkg/mksh.postinst (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
package/mksh/ipkg/mksh.postinst
rd01b731 rfc58502 8 8 if ! grep KSH_VERSION ${IPKG_INSTROOT}/etc/profile >/dev/null 2>&1; then 9 9 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 11 15 echo ' let cmax="${COLUMNS:-80} / 3"' >>${IPKG_INSTROOT}/etc/profile 12 16 echo ' (( cmax < 7 )) && let cmax=7' >>${IPKG_INSTROOT}/etc/profile
Note:
See TracChangeset
for help on using the changeset viewer.
