summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/52-udev-watchdog
blob: 504013a3223c0a918294bab6106ebe732d29ad63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

# Compile and install a custom udev-watchdog program

echo "Compiling and installing a custom udev-watchdog program"

apt-get install --yes build-essential binutils libudev-dev

SRC="/usr/src/udev-watchdog.c"
DST="/usr/local/sbin/udev-watchdog"

gcc -o "$DST" "$SRC" -Wall -ludev -lrt
strip --strip-all "$DST"

apt-get --yes purge libudev-dev