-# $Id: vserver-build.functions 2315 2006-09-15 19:16:48Z hollow $ --*- sh -*--
+# $Id: vserver-build.functions 2571 2007-07-29 16:55:06Z dhozac $ --*- sh -*--
# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
#
}
}
-function _setVserverDir
+function _setVserverDirName
{
test -z "$VSERVERDIRNAME" || return 0
VSERVERDIRNAME="$VSERVER_NAME"
ERROR: Can not find configuration for the distribution '$DISTRIBUTION';
please read http://linux-vserver.org/HowToRegisterNewDistributions
for information how to add support for your own distribution."
+
+ export DISTRIBUTION
}
function base._addGeneratedFile
{
_setRootDir
_setCacheDir
- _setVserverDir
+ _setVserverDirName
_setVdir
findFile _DEV_FILE "$__CONFDIR/.distributions/$DISTRIBUTION/devs" "$__DISTRIBDIR/$DISTRIBUTION/devs" "$__DISTRIBDIR/defaults/devs"