Upgrade Tor Browser to 14.0a6 (refs: tails#20448)
[tails.git] / config / chroot_local-hooks / 52-udev-watchdog
blob3bcc31f2c7378874db9a2475a9759ad67e160d9a
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 # Import ensure_hook_dependency_is_installed()
10 . /usr/local/lib/tails-shell-library/build.sh
12 ensure_hook_dependency_is_installed build-essential binutils libudev-dev
14 SRC="/usr/src/udev-watchdog.c"
15 DST="/usr/local/sbin/udev-watchdog"
17 gcc -o "$DST" "$SRC" -Wall -ludev -lrt
18 strip --strip-all "$DST"