]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
Forgot to "git add" the new pakfire init script
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 20 Mar 2018 11:08:58 +0000 (11:08 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 20 Mar 2018 11:08:58 +0000 (11:08 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/pakfire [new file with mode: 0644]

diff --git a/src/initscripts/system/pakfire b/src/initscripts/system/pakfire
new file mode 100644 (file)
index 0000000..1238833
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+########################################################################
+# Begin $rc_base/init.d/pakfire
+#
+# Description : Imports the keyring to make Pakfire operational
+#
+########################################################################
+
+. /etc/sysconfig/rc
+. ${rc_functions}
+
+case "${1}" in
+       start)
+               boot_mesg "Setting up Pakfire Package Manager..."
+               gpg --import /opt/pakfire/pakfire.key &>/dev/null
+               evaluate_retval
+               ;;
+
+       *)
+               echo "Usage: ${0} {start}"
+               exit 1
+               ;;
+esac
+
+# End $rc_base/init.d/pakfire