X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fscripts%2Frootshell;h=b365391549eca3bcffd04c556d9a4f64fd88614d;hb=d45518897217889e8571d94d4459ee12c4db56a0;hp=0331278a9163f66842951a0a80bd99780e10a541;hpb=732a86ac5e988c1be41076b609266130bdb3e8bb;p=util-vserver.git diff --git a/util-vserver/scripts/rootshell b/util-vserver/scripts/rootshell index 0331278..b365391 100755 --- a/util-vserver/scripts/rootshell +++ b/util-vserver/scripts/rootshell @@ -16,16 +16,13 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -: ${UTIL_VSERVER_VARS:=$(dirname $0)/util-vserver-vars} +: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} test -e "$UTIL_VSERVER_VARS" || { - echo "Can not find util-vserver installation; aborting..." + echo "Can not find util-vserver installation; aborting..." >&2 exit 1 } . "$UTIL_VSERVER_VARS" -OPTIONS=$@ -if [ "$OPTIONS" = "" ] ; then - OPTIONS=--login -fi -exec $SBINDIR/chbind --silent --ip 0.0.0.0 /bin/bash $OPTIONS +test "$*" || set -- --login +exec $SBINDIR/chbind --silent --ip 0.0.0.0 /bin/bash "$@"