Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=d54373be070132a4053aafa0e04538b624f7ca4d
commit d54373be070132a4053aafa0e04538b624f7ca4d Author: bouleetbil <bouleet...@frogdev.info> Date: Sun Jan 2 13:03:22 2011 +0100 *added rc script (will added unit) diff --git a/frugal-tweak-vala/DATA/init/rc.frugalware-tweak b/frugal-tweak-vala/DATA/init/rc.frugalware-tweak new file mode 100644 index 0000000..3524d75 --- /dev/null +++ b/frugal-tweak-vala/DATA/init/rc.frugalware-tweak @@ -0,0 +1,41 @@ +#!/bin/bash + +# (c) 2010 bouleetbil <bouleet...@frogdev.info> +# rc.frugal-mono-tools for Frugalware +# distributed under GPL License + +# chkconfig: 2345 99 02 +# description: Daemon to for check update packages + +TEXTDOMAIN=frugalware-tweak +TEXTDOMAINDIR=/lib/initscripts/messages +source /lib/initscripts/functions +daemon="Frugalware check update" + +actions=(start stop restart status) +pid="pidof /usr/bin/frugalware-tweak-daemon 2> /dev/null" + + +rc_start() +{ + start_msg + if [ -z "$(eval $pid)" ]; then + /usr/bin/frugalware-tweak-daemon -- 2>/dev/null 1>/dev/null + ok $? + else + ok 999 + fi +} + +rc_stop() +{ + stop_msg + if [ ! -z "$(eval $pid)" ] ;then + killall /usr/bin/frugalware-tweak-daemon + ok $? + else + ok 999 + fi +} + +rc_exec $1 diff --git a/frugal-tweak-vala/Makefile b/frugal-tweak-vala/Makefile index 0657434..5bf1aa6 100644 --- a/frugal-tweak-vala/Makefile +++ b/frugal-tweak-vala/Makefile @@ -56,6 +56,7 @@ install: mkdir -p $(DESTDIR)/etc/pam.d/ mkdir -p $(DESTDIR)/etc/security/console.apps/ mkdir -p $(DESTDIR)/usr/share/apps/fwroot/ + mkdir -p $(DESTDIR)/etc/rc.d/ cp frugalware-tweak-browser $(DESTDIR)/usr/bin/ cp frugalware-tweak-terminal $(DESTDIR)/usr/bin/ cp frugalware-tweak-daemon $(DESTDIR)/usr/bin/ @@ -67,12 +68,13 @@ install: cp DATA/desktop/frugalware-tweak2.desktop $(DESTDIR)/etc/xdg/autostart/frugalware-tweak2.desktop cp DATA/pictures/*.png $(DESTDIR)/usr/share/frugalware-tweak/pictures/ cp indicator/frugalware-tweak2.desktop $(DESTDIR)/usr/share/indicators/messages/applications/ + cp DATA/init/rc.frugalware-tweak $(DESTDIR)/etc/rc.d/ cp DATA/root/fwroot $(DESTDIR)/etc/pam.d/fwroot cp DATA/root/config-fwroot $(DESTDIR)/etc/pam.d/config-fwroot cp DATA/root/console.fwroot $(DESTDIR)/etc/security/console.apps/fwroot cp DATA/root/apps.fwroot $(DESTDIR)/usr/share/apps/fwroot/fwroot chmod +x $(DESTDIR)/usr/share/apps/fwroot/fwroot - ln $(DESTDIR)/usr/bin/consolehelper $(DESTDIR)/usr/bin/fwroot + ln -f $(DESTDIR)/usr/bin/consolehelper $(DESTDIR)/usr/bin/fwroot clean: @rm frugalware-tweak-terminal _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git