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