52-udev-watchdog 362 B

123456789101112131415161718
  1. #!/bin/sh
  2. set -e
  3. # Compile and install a custom udev-watchdog program
  4. echo "Compiling and installing a custom udev-watchdog program"
  5. apt-get install --yes build-essential binutils libudev-dev
  6. SRC="/usr/src/udev-watchdog.c"
  7. DST="/usr/local/sbin/udev-watchdog"
  8. gcc -o "$DST" "$SRC" -Wall -ludev -lrt
  9. strip --strip-all "$DST"
  10. apt-get --yes purge libudev-dev