Updated lcd4linux pack with backup and init files
authorChristian Schmidt <maniacikarus@ipfire.org>
Thu, 6 Aug 2009 05:12:40 +0000 (07:12 +0200)
committerChristian Schmidt <maniacikarus@ipfire.org>
Thu, 6 Aug 2009 05:12:40 +0000 (07:12 +0200)
config/backup/includes/lcd4linux [new file with mode: 0644]
config/rootfiles/packages/lcd4linux
lfs/lcd4linux
src/initscripts/init.d/lcd4linux [new file with mode: 0644]

diff --git a/config/backup/includes/lcd4linux b/config/backup/includes/lcd4linux
new file mode 100644 (file)
index 0000000..40fa69c
--- /dev/null
@@ -0,0 +1 @@
+/etc/lcd4linux.conf
index fc7fe35e5d019893af16e72fd148a9feef9819cb..226daf4187e425de3d692be52c4765ce8184109d 100644 (file)
@@ -1 +1,3 @@
 usr/bin/lcd4linux
+var/ipfire/backup/addons/includes/lcd4linux
+etc/rc.d/init.d/lcd4linux
index dfabfb490f3f5229b6657be8d7b5efc03db8abc5..a0ae13848c85e93eef2fb54ef361107031f3b171 100644 (file)
@@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = lcd4linux
-PAK_VER    = 1
+PAK_VER    = 2
 
 DEPS       = ""
 
@@ -80,5 +80,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/var/ipfire/lcd4linux
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
+       install -v -m 644 $(DIR_SRC)/config/backup/includes/lcd4linux /var/ipfire/backup/addons/includes/lcd4linux
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
diff --git a/src/initscripts/init.d/lcd4linux b/src/initscripts/init.d/lcd4linux
new file mode 100644 (file)
index 0000000..1cf0b87
--- /dev/null
@@ -0,0 +1,49 @@
+#!/bin/sh
+# Begin $rc_base/init.d/lcd4linux
+
+
+. /etc/sysconfig/rc
+. $rc_functions
+
+case "$1" in
+       start)
+               boot_mesg "Starting lcd4linux..."
+               if [ ! -f /etc/lcd4linux.conf ]; then
+                       boot_mesg "No configuration file found, not starting."
+                       exit 1
+               fi
+
+               loadproc /usr/bin/lcd4linux
+               ;;
+
+       stop)
+               boot_mesg "Stopping lcd4linux..."
+               killproc /usr/bin/lcd4linux
+               ;;
+
+       reload)
+               boot_mesg "Reloading smbd..."
+               reloadproc /usr/sbin/smbd
+
+               boot_mesg "Reloading nmbd..."
+               reloadproc /usr/sbin/nmbd
+               ;;
+
+       restart)
+               $0 stop
+               sleep 3
+               $0 start
+               ;;
+
+       status)
+               statusproc /usr/bin/lcd4linux
+               ;;
+
+       *)
+               echo "Usage: $0 {start|stop|reload|restart|status}"
+               exit 1
+               ;;
+esac
+
+
+# End $rc_base/init.d/lcd4linux