diff options
author | dancer <dancer> | 2001-08-27 11:01:56 +0000 |
---|---|---|
committer | dancer <dancer> | 2001-08-27 11:01:56 +0000 |
commit | 296a5a338a397c6cf8c77a813dc29bd1b7ce8b19 (patch) | |
tree | 100834164db20291514c5e5843f8aaff6928506f /pbuilder-modules | |
parent | e062d3ce43ca80e40030cf2bac5bc15b581a3a8b (diff) | |
download | pbuilder-296a5a338a397c6cf8c77a813dc29bd1b7ce8b19.tar pbuilder-296a5a338a397c6cf8c77a813dc29bd1b7ce8b19.tar.gz |
created pbuilder-modules and made others use it for common routines, and made PROC support optional for some people without PROC interface
Diffstat (limited to 'pbuilder-modules')
-rw-r--r-- | pbuilder-modules | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pbuilder-modules b/pbuilder-modules new file mode 100644 index 0000000..7601738 --- /dev/null +++ b/pbuilder-modules @@ -0,0 +1,22 @@ +#! /bin/bash +# common modules for pbuilder. + +function umountproc () { + if [ "$USEPROC" = "yes" ]; then + echo " -> unmounting proc" + umount "$BUILDPLACE/proc" + fi +} + +function mountproc () { + if [ "$USEPROC" = "yes" ]; then + echo " -> mounting proc" + mkdir -p $BUILDPLACE/proc + mount -t proc /proc "$BUILDPLACE/proc" + fi +} + + +#required for some packages to install... +export LANG=C +export LC_ALL=C |