Page MenuHomeFreeBSD

D40225.diff
No OneTemporary

D40225.diff

diff --git a/libexec/rc/rc.d/motd b/libexec/rc/rc.d/motd
--- a/libexec/rc/rc.d/motd
+++ b/libexec/rc/rc.d/motd
@@ -45,7 +45,8 @@
fi
T=`mktemp -t motd`
- uname -v | sed -e 's,^\([^#]*\) #\(.* [1-2][0-9][0-9][0-9]\).*/\([^\]*\) $,\1 (\3) #\2,' > ${T}
+ uname -v | sed -e 's,^\([^#]*\) #\(.* [1-2][0-9][0-9][0-9]\).*/\([^\]*\)$,\1 (\3) #\2,' \
+ -e 's,^\([^ ]*\) \([^ ]*\) \([^ ]*\) \([^ ]*\)$,\1 \2 (\4) \3,' > ${T}
cat "${TEMPLATE}" >> ${T}
install -C -o root -g wheel -m "${PERMS}" "$T" "${TARGET}"

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 1, 4:20 PM (21 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13255357
Default Alt Text
D40225.diff (516 B)

Event Timeline