~ubuntu-branches/ubuntu/karmic/xfce4-session/karmic

« back to all changes in this revision

Viewing changes to xfsm-shutdown-helper/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2008-05-20 08:18:16 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (4.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20080520081816-d539vkriuxq85dhd
Tags: 4.4.2-6
debian/{postinst,prerm}: have them back, they manage the x-session-manager
alternative.                                                closes: #481933

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: main.c 4565 2004-05-20 20:45:28Z benny $ */
 
1
/* $Id: main.c 23842 2006-11-12 12:57:10Z benny $ */
2
2
/*-
3
3
 * Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org>
4
4
 * All rights reserved.
57
57
#undef REBOOT_CMD
58
58
#endif
59
59
 
60
 
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
 
60
#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
61
61
#define POWEROFF_CMD  "/sbin/shutdown -p now"
62
62
#define REBOOT_CMD    "/sbin/shutdown -r now"
 
63
#elif defined(sun) || defined(__sun)
 
64
#define POWEROFF_CMD  "/usr/sbin/shutdown -i 5 -g 0 -y"
 
65
#define REBOOT_CMD    "/usr/sbin/shutdown -i 6 -g 0 -y"
63
66
#else
64
67
#define POWEROFF_CMD  "/sbin/shutdown -h now"
65
68
#define REBOOT_CMD    "/sbin/shutdown -r now"