aboutsummaryrefslogtreecommitdiffstats
path: root/hostname-post
diff options
context:
space:
mode:
authorflepied <flepied@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2004-08-01 22:59:49 +0000
committerflepied <flepied@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2004-08-01 22:59:49 +0000
commitb6169329d5466202bc805d422545771ad5312a93 (patch)
treedddb43ffe37f9775b28e6f88318db1af8a73cbed /hostname-post
parent15d97ce77496d12b69361b218edd5ca089d83fe9 (diff)
downloads2u-b6169329d5466202bc805d422545771ad5312a93.tar
s2u-b6169329d5466202bc805d422545771ad5312a93.tar.gz
s2u-b6169329d5466202bc805d422545771ad5312a93.tar.bz2
s2u-b6169329d5466202bc805d422545771ad5312a93.tar.xz
s2u-b6169329d5466202bc805d422545771ad5312a93.zip
Initial revision
git-svn-id: svn+ssh://svn.mandriva.com/svn/soft/s2u/trunk@179769 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'hostname-post')
-rwxr-xr-xhostname-post18
1 files changed, 18 insertions, 0 deletions
diff --git a/hostname-post b/hostname-post
new file mode 100755
index 0000000..b8a3a86
--- /dev/null
+++ b/hostname-post
@@ -0,0 +1,18 @@
+#!/bin/sh
+#---------------------------------------------------------------
+# Project : Mandrakelinux
+# Module : s2u
+# File : hostname-post
+# Version : $Id$
+# Author : Frederic Lepied
+# Created On : Tue Jul 6 16:10:03 2004
+# Purpose : send a dbus message on hostname change to all
+# running X11 dbus session.
+#---------------------------------------------------------------
+
+for f in `ls /var/tmp/dbus-xsession* 2> /dev/null`; do
+ . $f
+ dbus-send --type=method_call --dest=com.mandrakesoft.user.message /com/mandrakesoft/user com.mandrakesoft.user.message string:"Hostname: $1" &
+done
+
+# hostname-post ends here