Magellan Linux

Contents of /mcore-src/trunk/mcore-tools/daemon/client/include/system.client.class

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1248 - (show annotations) (download)
Wed Feb 2 20:20:24 2011 UTC (13 years, 3 months ago) by niro
File size: 684 byte(s)
-initial version
1 # $Id$
2
3 provide basic-system
4
5 help_system_reboot()
6 {
7 mecho "set system.reboot"
8 mecho " reboots the system."
9 }
10
11 # set_system_reboot
12 set_system_reboot()
13 {
14 reboot
15 }
16
17 help_system_shutdown()
18 {
19 mecho "set system.shutdown"
20 mecho " shuts the system down."
21 }
22
23 # set_system_shutdown
24 set_system_shutdown()
25 {
26 halt
27 }
28
29 help_system_console()
30 {
31 mecho "set system.console"
32 mecho " opens a console with user privileges."
33 }
34
35 set_system_console()
36 {
37 x11runas "DISPLAY=:0 rxvt"
38 }
39
40 help_system_rootconsole()
41 {
42 mecho "set system.rootconsole"
43 mecho " opens a console with system privileges."
44 }
45
46 # opens a root console
47 set_system_rootconsole()
48 {
49 x11runas "DISPLAY=:0 rxvt -e '/bin/login -f root"
50 }