]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/blob - src/initscripts/system/pakfire
pakfire: Import old key, too
[people/stevee/ipfire-2.x.git] / src / initscripts / system / pakfire
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
12 case "${1}" in
13 start)
14 boot_mesg "Setting up Pakfire Package Manager..."
15 gpg --import /opt/pakfire/pakfire-2018.key &>/dev/null
16 evaluate_retval
17
18 # Try to import the old key, too
19 gpg --import /opt/pakfire/pakfire-2007.key &>/dev/null
20 ;;
21
22 *)
23 echo "Usage: ${0} {start}"
24 exit 1
25 ;;
26 esac
27
28 # End $rc_base/init.d/pakfire