slish view tools/slish.sh @ rev 3

Added tools directory (with the chroot login SHell)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jan 22 18:36:09 2014 +0100 (2014-01-22)
parents
children 27c18235251c
line source
1 #!/bin/sh
2 #
3 # SliSH users SHell - This tool is executed when a user is chrooted and
4 # must be installed into the SliSH chroot.
5 #
6 # Copyright (C) 2014 SliTaz GNU/Linux - BSD License
7 # Author: Christophe Lincoln <pankso@slitaz.org>
8 #
9 . /lib/libtaz.sh
11 # Welcome
12 clear && colorize 36 "Welcome to your SliTaz SHell"
13 boldify $(date '+%a %b %d %Y - %H:%M')
14 newline
16 # Set some env variables
17 PS1='\u@slish\e[0m:\e[1;34m\w\e[0m\$ '
18 PATH='/bin:/usr/bin'
19 HOME=/home/$USER
20 SHELL=/bin/sh
21 export PS1 PATH HOME SHELL
22 umask 0077
24 # Chroot will drop user into /
25 cd ${HOME}
26 exec /bin/sh "$@"