source: freewrt/package/mksh/patches/patch-dot_mkshrc@ 8059647

freewrt_1_0 freewrt_2_0
Last change on this file since 8059647 was 8059647, checked in by Thorsten Glaser <tg@…>, 19 years ago

we do determine the hostname slightly differently from the rest

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

  • Property mode set to 100644
File size: 517 bytes
Line 
1$FreeWRT$
2--- mksh.orig/dot.mkshrc 2006-08-28 03:35:10.000000000 +0200
3+++ mksh/dot.mkshrc 2006-09-24 03:36:07.000000000 +0200
4@@ -1,6 +1,6 @@
5 # $MirOS: src/bin/mksh/dot.mkshrc,v 1.3 2006/08/28 01:34:47 tg Exp $
6
7-: ${EDITOR:=/bin/ed} ${HOSTNAME:=$(hostname -s 2>/dev/null || hostname)}
8+: ${EDITOR:=/bin/ed} ${HOSTNAME:=$(</proc/sys/kernel/hostname)}
9 PS1='$(((rv=$?)) && print $rv\|)${USER:=$(id -un)}@${HOSTNAME:=nil}:$(
10 local pfx=~ wd=${PWD:-$(pwd)}
11 [[ ${wd#$pfx} = $wd || $pfx = ?(/) ]] || wd=\~${wd#$pfx}
Note: See TracBrowser for help on using the repository browser.