File: shutdown-system.example

package info (click to toggle)
remuco 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,276 kB
  • ctags: 2,452
  • sloc: java: 7,161; python: 6,140; xml: 5,704; sh: 165; makefile: 74
file content (14 lines) | stat: -rw-r--r-- 508 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#/bin/sh

# Example shutdown script which uses DBus.
# Put this into ~/.config/remuco and rename it to 'shutdown-system' to enable
# Remuco clients to remotely shut down the whole system (not only the media
# player).

# Note: If you enable this script, a malicious neighbor might use Remuco on
#       _his_ mobile and shutdown _your_ computer! 

dbus-send --session --type=method_call \
	--dest=org.freedesktop.PowerManagement \
	/org/freedesktop/PowerManagement \
	org.freedesktop.PowerManagement.Shutdown