udev automounts things as hd_ now

This commit is contained in:
Mike Staszel 2011-01-01 23:25:35 -06:00
parent c7fc35270a
commit db88fa705c
4 changed files with 10 additions and 15 deletions

BIN
core/initscripts/minilogd Executable file

Binary file not shown.

View file

@ -2,6 +2,10 @@
# /etc/rc.conf - Plugbox Linux Main Configuration
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
LOCALE="en_US.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="America/Chicago"

View file

@ -6,7 +6,7 @@ IMPORT{program}="/sbin/blkid -o udev -p %N"
# Get a label if present, otherwise specify one
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="hd-%k"
# Global mount options
ACTION=="add", ENV{mount_options}="noatime"

View file

@ -7,15 +7,15 @@
pkgbase="udev"
pkgname=('udev' 'udev-compat')
pkgver=162
pkgrel=1
pkgver=164
pkgrel=3
arch=(arm)
url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
license=('GPL')
groups=('base')
# older initscripts versions required start_udev
options=(!makeflags !libtool)
makedepends=('glibc' 'coreutils' 'util-linux' 'libusb' 'glib2' 'kernel26' 'gperf' 'libxslt' 'gobject-introspection')
makedepends=('glibc' 'coreutils' 'util-linux' 'libusb-compat' 'glib2' 'kernel26' 'gperf' 'libxslt' 'gobject-introspection')
source=(http://www.kernel.org/pub/linux/utils/kernel/hotplug/$pkgname-$pkgver.tar.bz2
80-drivers.rules
81-arch.rules
@ -33,10 +33,8 @@ md5sums=('dd7099242e92084605e07db0c7299a02'
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix="" --mandir=/usr/share/man\
--includedir=/usr/include\
--libexecdir=/lib/udev\
--datarootdir=/usr/share
./configure --sysconfdir=/etc --with-rootlibdir=/lib --libexecdir=/lib/udev\
--sbindir=/sbin --with-systemdsystemunitdir=/lib/systemd/system
make
}
@ -52,11 +50,6 @@ package_udev() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=${pkgdir} install
# Fix pkgconfig path
install -d -m755 $pkgdir/usr/lib
mv $pkgdir/lib/pkgconfig $pkgdir/usr/lib
# Fix ConsoleKit path
mv $pkgdir/lib/ConsoleKit $pkgdir/usr/lib
# Replace original 80-drivers.rules with custom one.
install -D -m644 $srcdir/80-drivers.rules $pkgdir/lib/udev/rules.d/80-drivers.rules
# Install our rule for permissions and symlinks
@ -114,8 +107,6 @@ package_udev() {
s#GROUP="cdrom"#GROUP="optical"#g' $i
done
mv "${pkgdir}/lib/girepository-1.0" "${pkgdir}/usr/lib/"
# Plugbox Linux USB drive and SD card automount rules
rm -rf $pkgdir/etc/udev/rules.d/*
cp $srcdir/11-media-by-label-auto-mount.rules $pkgdir/etc/udev/rules.d/