Merge branch 'master' of git://git.tails.boum.org/tails
[besstails.git] / config / chroot_local-hooks / 52-udev-watchdog
blob921d4fdbdf37f90ff40697be6c6e1a12e0e81867
1 #!/bin/sh
3 set -e
5 # Compile and install a custom udev-watchdog program
7 echo 'compiling and installing a custom udev-watchdog program'
9 apt-get install --yes build-essential binutils libudev-dev
11 SRC="/usr/src/udev-watchdog.c"
12 DST="/usr/local/sbin/udev-watchdog"
14 gcc -o "$DST" "$SRC" -static -Wall -ludev
15 strip --strip-all "$DST"
17 apt-get --yes purge libudev-dev