summaryrefslogtreecommitdiffstats
path: root/dhcpcd-run-hooks.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-08-15 11:33:33 +0000
committerRoy Marples <roy@marples.name>2008-08-15 11:33:33 +0000
commit7e79a3e4a12ba865f95f21abe8110adb47446293 (patch)
tree7317de679e228d924bc6f8434dee152ff95de6f6 /dhcpcd-run-hooks.in
parentee90dc2257a48b3b8bae93a218d3dcc1bee46aaf (diff)
downloaddhcpcd-7e79a3e4a12ba865f95f21abe8110adb47446293.tar.xz
If cmp and diff aren't around, try a text match using cat. After all, we are working with text files.
Diffstat (limited to 'dhcpcd-run-hooks.in')
-rw-r--r--dhcpcd-run-hooks.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/dhcpcd-run-hooks.in b/dhcpcd-run-hooks.in
index 66192942..1e5d5b37 100644
--- a/dhcpcd-run-hooks.in
+++ b/dhcpcd-run-hooks.in
@@ -87,7 +87,8 @@ change_file()
elif type diff >/dev/null 2>&1; then
diff -q "$1" "$2" >/dev/null
else
- false
+ # Hopefully we're only working on small text files ...
+ [ "$(cat "$1")" = "$(cat "$2")" ]
fi
if [ $? -eq 0 ]; then
rm -f "$2"