view images/lfs-bootstrap/mnt/build/udev.sh @ 40:ef471ef37665 draft default tip

Yank reliance on ash.
author Rob Landley <rob@landley.net>
date Sat, 18 Jul 2015 01:39:24 -0500
parents bcd2e358d57f
children
line wrap: on
line source

#!/bin/sh

mkdir -p /lib/udev/devices || exit 1
if [ ! -e /lib/udev/devices/null ]
then
  mknod -m0666 /lib/udev/devices/null c 1 3 || exit 1
fi
sed -i 's/ libudev-install-move-hook//' Makefile.in &&
install -d /lib/firmware /lib/udev/devices/pts /lib/udev/devices/shm &&
./configure --sysconfdir=/etc --sbindir=/sbin \
  --with-rootlibdir=/lib --libexecdir=/lib/udev --disable-extras \
  --disable-introspection &&
make -j $CPUS || exit 1
if [ ! -z "$CHECK" ]
then
  make check || exit 1
fi
make install &&
rmdir /usr/share/doc/udev &&
cd /mnt/packages/udev-config &&
make -j $CPUS install || exit 1

if [ ! -z "$DOCS" ]
then
  make install-doc
fi