]> git.ipfire.org Git - ipfire-2.x.git/blame - src/initscripts/system/pakfire
Merge branch 'master' into core119
[ipfire-2.x.git] / src / initscripts / system / pakfire
CommitLineData
e7ea357c
MT
1#!/bin/sh
2########################################################################
3# Begin $rc_base/init.d/pakfire
4#
5# Description : Imports the keyring to make Pakfire operational
6#
7########################################################################
8
9. /etc/sysconfig/rc
10. ${rc_functions}
11
9a507db2
MT
12export GNUPGHOME="/opt/pakfire/etc/.gnupg"
13
e7ea357c
MT
14case "${1}" in
15 start)
16 boot_mesg "Setting up Pakfire Package Manager..."
397d3a8e 17 gpg --import /opt/pakfire/pakfire-2018.key &>/dev/null
e7ea357c 18 evaluate_retval
74e715a5
MT
19
20 # Try to import the old key, too
21 gpg --import /opt/pakfire/pakfire-2007.key &>/dev/null
e7ea357c
MT
22 ;;
23
24 *)
25 echo "Usage: ${0} {start}"
26 exit 1
27 ;;
28esac
29
30# End $rc_base/init.d/pakfire