aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2017-12-26 04:07:50 +0000
committerMike Crute <mike@crute.us>2017-12-26 04:07:50 +0000
commit4e881f09cb5fea38ef128ca2974e575ad355dcfc (patch)
treed73da4dfd081be5b7d2b66d0f0b455e1ade5d543
parent6dbdc2327206c002540093b5a8b9a88f43d00858 (diff)
downloadalpine-ec2-ami-4e881f09cb5fea38ef128ca2974e575ad355dcfc.tar.bz2
alpine-ec2-ami-4e881f09cb5fea38ef128ca2974e575ad355dcfc.tar.xz
alpine-ec2-ami-4e881f09cb5fea38ef128ca2974e575ad355dcfc.zip
Make prompt more obvious
-rwxr-xr-xmake_ami.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/make_ami.sh b/make_ami.sh
index 743827c..ec89fb7 100755
--- a/make_ami.sh
+++ b/make_ami.sh
@@ -156,6 +156,10 @@ install_core_packages() {
156 # anyhow. With this configuration boot messages will still display in the 156 # anyhow. With this configuration boot messages will still display in the
157 # EC2 console. 157 # EC2 console.
158 sed -Ei '/^tty\d/s/^/#/' /etc/inittab 158 sed -Ei '/^tty\d/s/^/#/' /etc/inittab
159
160 # Make it a little more obvious who is logged in by adding username to the
161 # prompt
162 sed -i "s/^export PS1='/&\\\\u@/" /etc/profile
159} 163}
160 164
161create_initfs() { 165create_initfs() {