]> 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
12case "${1}" in
13 start)
14 boot_mesg "Setting up Pakfire Package Manager..."
397d3a8e 15 gpg --import /opt/pakfire/pakfire-2018.key &>/dev/null
e7ea357c 16 evaluate_retval
74e715a5
MT
17
18 # Try to import the old key, too
19 gpg --import /opt/pakfire/pakfire-2007.key &>/dev/null
e7ea357c
MT
20 ;;
21
22 *)
23 echo "Usage: ${0} {start}"
24 exit 1
25 ;;
26esac
27
28# End $rc_base/init.d/pakfire