Merge remote-tracking branch 'flapflap/de-network_configuration'
[tails-test.git] / config / chroot_local-hooks / 52-udev-watchdog
blobe003934f58f0a5e8c14ef77f76ceec81e1d054ac
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 -lrt
15 strip --strip-all "$DST"
17 apt-get --yes purge libudev-dev