summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/ndiswrapper/ndiswrapper-1.45.ebuild')
-rw-r--r--net-wireless/ndiswrapper/ndiswrapper-1.45.ebuild23
1 files changed, 13 insertions, 10 deletions
diff --git a/net-wireless/ndiswrapper/ndiswrapper-1.45.ebuild b/net-wireless/ndiswrapper/ndiswrapper-1.45.ebuild
index ac876abfe9f4..b9cb07affdba 100644
--- a/net-wireless/ndiswrapper/ndiswrapper-1.45.ebuild
+++ b/net-wireless/ndiswrapper/ndiswrapper-1.45.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ndiswrapper-1.45.ebuild,v 1.1 2007/05/28 19:44:59 peper Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ndiswrapper-1.45.ebuild,v 1.2 2007/06/25 10:34:19 peper Exp $
inherit linux-mod
@@ -101,14 +101,17 @@ pkg_postinst() {
elog "See ${HOMEPAGE} for details."
echo
- einfo "Attempting to automatically reinstall any Windows drivers"
- einfo "you might already have."
- echo
+ if [[ ${ROOT} == "/" ]]; then
+
+ einfo "Attempting to automatically reinstall any Windows drivers"
+ einfo "you might already have."
+ echo
- local driver
- for driver in $(ls /etc/ndiswrapper) ; do
- einfo "Driver: ${driver}"
- mv "/etc/ndiswrapper/${driver}" "${T}"
- ndiswrapper -i "${T}/${driver}/${driver}.inf"
- done
+ local driver
+ for driver in $(ls /etc/ndiswrapper) ; do
+ einfo "Driver: ${driver}"
+ mv "/etc/ndiswrapper/${driver}" "${T}"
+ ndiswrapper -i "${T}/${driver}/${driver}.inf"
+ done
+ fi
}