updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / unifiedkernel / unifiedkerneld
blob7d86d67e0f8dbd2aa4e3405d2a9cd0536c5dd89b
1 #!/bin/sh
3 # wine Allow users to run Windows(tm) applications by just clicking on them
4 # (or typing ./file.exe)
6 # chkconfig: 35 98 10
7 # description: Allow users to run Windows(tm) applications by just clicking \
8 # on them (or typing ./file.exe)
10 . /etc/rc.conf
11 . /etc/rc.d/functions
13 RETVAL=0
15 KERNEL_VER=`uname -r`
17 start() {
18 stat_busy "Start Unifiedkernel"
19 /sbin/insmod /lib/modules/$KERNEL_VER/kernel/unifiedkernel/unifiedkernel.ko rootdir=`cat /etc/unifiedkernel/home`/.wine > /dev/null 2>&1 && \
20 # if /sbin/start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/unifiedkerneld -- start; then
21 log_end_msg 0 || \
22 # else
23 log_end_msg 1
24 # fi
25 chown `cat /etc/unifiedkernel/user`:`cat /etc/unifiedkernel/user` `cat /etc/unifiedkernel/home`/.wine -R
26 stat_done
29 stop() {
30 stat_busy "Stop Unifiedkernel"
31 /sbin/rmmod unifiedkernel &> /dev/null 2>&1 && \
32 # if /sbin/start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/unifiedkerneld -- stop; then
33 log_end_msg 0 || \
34 # else
35 log_end_msg 1
36 # fi
37 stat_done
40 reload() {
41 stop
42 start
45 uk_status() {
46 if [ -e /proc/unifiedkernel/builtin_dll ]; then
47 echo $"Unifiedkernel are started."
48 return 0
49 else
50 echo $"Unifiedkernel art stoped."
51 return 3
55 case "$1" in
56 start)
57 start
59 stop)
60 stop
62 status)
63 uk_status
64 RETVAL=$?
66 restart)
67 stop
68 start
70 condrestart)
71 if [ -e /proc/unifiedkernel/builtin_dll ]; then
72 stop
73 start
77 echo $"Usage: $prog {start|stop|status|restart|condrestart}"
78 exit 1
79 esac
80 exit $RETVAL