#!/bin/sh # First argument of this script is the package name. # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} && cd ${LFS_TMP}/${1} && ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --disable-build-docs && make && make install && hv_groupadd -g 14 usb && # 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 || exit 1 fi && ldconfig # Return last error exit $?