public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] bash scrip prompt after bootstrap
@ 2018-03-30 16:33 thelma
  2018-03-30 17:10 ` Bas Zoutendijk
  0 siblings, 1 reply; 15+ messages in thread
From: thelma @ 2018-03-30 16:33 UTC (permalink / raw
  To: Gentoo mailing list

I'm using a scrip to log-in/boot strap the system over NFS

-----
#!/bin/sh

HOST=${0##*/}
HOST=${HOST#*-}
ROOT=/mnt/${HOST}
...
exec chroot '${ROOT}' /bin/bash -l
---

When I'm presented with bash prompt, it is the same as the one I logged
IN from.  So to eliminate the confusion I would like to change (add to)
the bash prompt the "HOST' name I log-in to.

When I log-in I'm presented with: "syscon3 #"
I would like it to be: ROOT+HOST
eg.: syscon3-eden

-- 
Thelma


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-04-02 20:40 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-30 16:33 [gentoo-user] bash scrip prompt after bootstrap thelma
2018-03-30 17:10 ` Bas Zoutendijk
2018-03-30 18:20   ` thelma
2018-04-02  2:54   ` thelma
2018-04-02  8:00     ` Bas Zoutendijk
2018-04-02  8:25     ` David Haller
2018-04-02  9:29       ` Bas Zoutendijk
2018-04-02 15:14         ` [gentoo-user] " Ian Zimmerman
2018-04-02 15:55           ` Bas Zoutendijk
2018-04-02 16:25             ` Ian Zimmerman
2018-04-02 17:18               ` Bas Zoutendijk
2018-04-02 18:40                 ` Ian Zimmerman
2018-04-02 16:50         ` [gentoo-user] " thelma
2018-04-02 18:36     ` Tom H
2018-04-02 20:40       ` Bas Zoutendijk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox