Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions image/templates/files/profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# The profile that all logins get before using their own .profile.

trap "" 2 3
export LOGNAME PATH

if [ -z "$TERM" ]; then
export TERM=xterm
fi

case "$0" in
-bash)
# set prompt for bash
PS1="\u@\h:\w\\$ "
export PS1
;;
esac

case "$0" in
-sh | -ksh | -ksh93 | -jsh | -bash | -zsh)
if [ ! -f .hushlogin ]; then
# Allow the user to break the Message-Of-The-Day only.
trap "trap '' 2" 2
/bin/cat -s /etc/motd
trap "" 2
fi
esac

umask 022
trap 2 3
4 changes: 4 additions & 0 deletions image/templates/sled/ramdisk-02-trim.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@
"file": "/etc/motd",
"src": "motd",
"owner": "root", "group": "sys", "mode": "0644" },
{ "t": "ensure_file",
"file": "/etc/profile",
"src": "profile",
"owner": "root", "group": "sys", "mode": "0644" },

{ "t": "ensure_file",
"file": "/etc/system.d/zfs:dbuf",
Expand Down