Changeset 8641ba2 in freewrt
- Timestamp:
- Jul 3, 2006, 2:48:48 PM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 3b38709
- Parents:
- baf209a
- Location:
- package/mksh
- Files:
-
- 2 edited
-
Makefile (modified) (1 diff)
-
ipkg/mksh.postinst (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
package/mksh/Makefile
rbaf209a r8641ba2 4 4 5 5 PKG_NAME= mksh 6 PKG_VERSION= 27. 36 PKG_VERSION= 27.4 7 7 PKG_RELEASE= 1 8 PKG_SOURCE= ${PKG_NAME}-R27 d.cpio.gz9 PKG_MD5SUM= c35648b7e8842e8d9012570b3f1481898 PKG_SOURCE= ${PKG_NAME}-R27e.cpio.gz 9 PKG_MD5SUM= 2eeb5c5fab32cc7a20ca3c7c2c6fda46 10 10 11 11 PKG_SOURCE_URL= http://mirbsd.mirsolutions.de/MirOS/dist/mir/mksh/ \ -
package/mksh/ipkg/mksh.postinst
rbaf209a r8641ba2 9 9 echo 'if test -n "$KSH_VERSION"; then' >>${IPKG_INSTROOT}/etc/profile 10 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/profile11 echo ' export PS1='\''$(((rv=$?)) && print $rv\|)'\''"\$USER@${HOSTNAME:-noFQDN}:"'\''$(' >>${IPKG_INSTROOT}/etc/profile 12 12 echo ' typeset tilde=~ path=${1:-${PWD:-$(pwd)}}' >>${IPKG_INSTROOT}/etc/profile 13 13 echo ' typeset dots= path2=${path#$tilde}' >>${IPKG_INSTROOT}/etc/profile 14 echo ' [[ $path2 = $path || -z $tilde || $tilde = / ]] || path= '~'$path2' >>${IPKG_INSTROOT}/etc/profile14 echo ' [[ $path2 = $path || -z $tilde || $tilde = / ]] || path=\~$path2' >>${IPKG_INSTROOT}/etc/profile 15 15 echo ' let cmax="${COLUMNS:-80} / 3"' >>${IPKG_INSTROOT}/etc/profile 16 16 echo ' (( cmax < 7 )) && let cmax=7' >>${IPKG_INSTROOT}/etc/profile … … 24 24 echo ' fi' >>${IPKG_INSTROOT}/etc/profile 25 25 echo ' done' >>${IPKG_INSTROOT}/etc/profile 26 echo ' print -nr -- "$dots$path")'\''" $(if [[ $(id -u) -eq 0 ]]; then' >>${IPKG_INSTROOT}/etc/profile27 echo ' echo -n '\''#'\''; else echo -n '\''$'\''; fi) "' >>${IPKG_INSTROOT}/etc/profile26 echo ' print -nr -- "$dots$path")'\''" $(if (( $(id -u) )); then' >>${IPKG_INSTROOT}/etc/profile 27 echo ' print -n \$; else print -n \#; fi) "' >>${IPKG_INSTROOT}/etc/profile 28 28 echo 'fi' >>${IPKG_INSTROOT}/etc/profile 29 29 fi
Note:
See TracChangeset
for help on using the changeset viewer.
