summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/x86-chroot/files/initd')
-rw-r--r--app-emulation/x86-chroot/files/initd37
1 files changed, 0 insertions, 37 deletions
diff --git a/app-emulation/x86-chroot/files/initd b/app-emulation/x86-chroot/files/initd
deleted file mode 100644
index 0bd9bb1d52ea..000000000000
--- a/app-emulation/x86-chroot/files/initd
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-CHROOT_LOCATION=${CHROOT_LOCATION:-/opt/x86-chroot}
-
-depend() {
- need localmount
- need bootmisc
-}
-
-start() {
- ebegin "Mounting 32bits chroot dirs to ${CHROOT_LOCATION}"
- for loc in /dev /dev/pts /dev/shm /proc /proc/bus/usb /sys /tmp ; do
- mount -o bind ${loc} ${CHROOT_LOCATION}${loc} >/dev/null
- done
- eval "$(portageq envvar -v PORTDIR DISTDIR)"
- [[ -d ${CHROOT_LOCATION}/usr/portage/distfiles ]] || mkdir -p ${CHROOT_LOCATION}/usr/portage/distfiles
- mount -o bind ${PORTDIR} ${CHROOT_LOCATION}/usr/portage >/dev/null
- mount -o bind ${DISTDIR} ${CHROOT_LOCATION}/usr/portage/distfiles >/dev/null
- eend $? "An error occured while attempting to mount 32bit chroot directories"
-
- ebegin "Copying 32bits chroot files"
- for conffile in resolv.conf passwd shadow group gshadow hosts ; do
- [[ -f /etc/${conffile} ]] && cp -pf /etc/${conffile} ${CHROOT_LOCATION}/etc >/dev/null &
- done
- cp -Ppf /etc/localtime ${CHROOT_LOCATION}/etc >/dev/null &
- eend $? "An error occured while attempting to copy 32 bits chroot files."
-}
-
-stop() {
- ebegin "Unmounting 32bits chroot dirs"
- for loc in /dev/pts /dev/shm /dev /proc/bus/usb /proc /sys /tmp /usr/portage/distfiles /usr/portage; do
- umount -f ${CHROOT_LOCATION}${loc} >/dev/null
- done
- eend $? "An error occured while attempting to unmount 32bits chroot directories"
-}