52-udev-watchdog 437 Bytes
Newer Older
1 2
#!/bin/sh

3 4
set -e

5 6
# Compile and install a custom udev-watchdog program

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

anonym's avatar
anonym committed
9
# Import ensure_hook_dependency_is_installed()
10 11
. /usr/local/lib/tails-shell-library/build.sh

anonym's avatar
anonym committed
12
ensure_hook_dependency_is_installed build-essential binutils libudev-dev
13 14 15 16

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

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