projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ajout configuration WindowMaker
[hvlinux.git]
/
stage3
/
cis-libusb
diff --git
a/stage3/cis-libusb
b/stage3/cis-libusb
index
dd62041
..
0d047a8
100755
(executable)
--- a/
stage3/cis-libusb
+++ b/
stage3/cis-libusb
@@
-2,30
+2,37
@@
set -o errexit
# First argument of this script is the package name.
set -o errexit
# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
# Reading system configuration informations, functions and package versions.
source ../sysinfos
source ../functions
source ../packages-list
# Reading system configuration informations, functions and package versions.
source ../sysinfos
source ../functions
source ../packages-list
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
# Applying patches (if any)
# Applying patches (if any)
-apply_patches ${
1
}
+apply_patches ${
PACKAGE
}
-cd ${LFS_TMP}/${
1
}
+cd ${LFS_TMP}/${
PACKAGE
}
./configure \
--prefix=/usr \
--sysconfdir=/etc \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
- --disable-build-docs
+ ${CONFIGURE_OPTS}
make
make install
make
make install
+ldconfig
-hv_groupadd -g 14 usb
+cat > /etc/udev/rules.d/23-usb.rules << "EOF"
+# Set group ownership for raw USB devices
+SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb"
+EOF
# Checking if string exists
# Checking if string exists
-if ! grep "/proc/bus/usb" /etc/fstab 1> /dev/null 2>&1; then
- echo "usbfs /proc/bus/usb usbfs ddevgid=14,devmode=0660 0 0" >> /etc/fstab
-fi
-
-ldconfig
+#if ! grep "/proc/bus/usb" /etc/fstab 1> /dev/null 2>&1; then
+# echo "usbfs /proc/bus/usb usbfs ddevgid=14,devmode=0660 0 0" >> /etc/fstab
+#fi
exit $?
exit $?