From d833305e38e2e1e18ed93d1415619f48b54309b2 Mon Sep 17 00:00:00 2001 From: sobomax Date: Fri, 11 Aug 2000 12:17:06 +0000 Subject: Fix yet another linuxism: /usr/bin/shutdown --> /sbin/shutdown. --- x11/gnomecore/files/patch-ar | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 x11/gnomecore/files/patch-ar (limited to 'x11') diff --git a/x11/gnomecore/files/patch-ar b/x11/gnomecore/files/patch-ar new file mode 100644 index 000000000000..80cef438a1b4 --- /dev/null +++ b/x11/gnomecore/files/patch-ar @@ -0,0 +1,23 @@ +--- gsm/logout.c 2000/08/11 06:51:52 1.1 ++++ gsm/logout.c 2000/08/11 07:07:38 +@@ -34,12 +34,20 @@ + + static gchar *halt_command[] = + { ++#ifdef __FreeBSD__ ++ "/sbin/shutdown", "-h", "now", NULL ++#else + "/usr/bin/shutdown", "-h", "now", NULL ++#endif + }; + + static gchar *reboot_command[] = + { ++#ifdef __FreeBSD__ ++ "/sbin/shutdown", "-r", "now", NULL ++#else + "/usr/bin/shutdown", "-r", "now", NULL ++#endif + }; + + /* What action to take upon shutdown */ -- cgit