# HG changeset patch # User Christophe Lincoln # Date 1390412169 -3600 # Node ID 2f91234fc15c06350cf84550e30f4ed13d49bdb5 # Parent 103734990d089cbdeabd3b85db39a56604d08b18 Added tools directory (with the chroot login SHell) diff -r 103734990d08 -r 2f91234fc15c tools/slish.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/slish.sh Wed Jan 22 18:36:09 2014 +0100 @@ -0,0 +1,27 @@ +#!/bin/sh +# +# SliSH users SHell - This tool is executed when a user is chrooted and +# must be installed into the SliSH chroot. +# +# Copyright (C) 2014 SliTaz GNU/Linux - BSD License +# Author: Christophe Lincoln +# +. /lib/libtaz.sh + +# Welcome +clear && colorize 36 "Welcome to your SliTaz SHell" +boldify $(date '+%a %b %d %Y - %H:%M') +newline + +# Set some env variables +PS1='\u@slish\e[0m:\e[1;34m\w\e[0m\$ ' +PATH='/bin:/usr/bin' +HOME=/home/$USER +SHELL=/bin/sh +export PS1 PATH HOME SHELL +umask 0077 + +# Chroot will drop user into / +cd ${HOME} +exec /bin/sh "$@" +