cf18ae6433
This will allow users to install packages within the live environment. We use the haveged daemon to increase entropy from CPU timings. See http://www.issihosts.com/haveged/ for details. Signed-off-by: Pierre Schmitz <pierre@archlinux.de> Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
35 lines
485 B
Bash
Executable File
35 lines
485 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. /etc/rc.conf
|
|
. /etc/rc.d/functions
|
|
|
|
case "$1" in
|
|
start)
|
|
stat_busy "Initializing pacman keyring"
|
|
if { pacman-key --init && pacman-key --populate archlinux; } &>/dev/null; then
|
|
add_daemon pacman-init
|
|
stat_done
|
|
else
|
|
stat_fail
|
|
exit 1
|
|
fi
|
|
;;
|
|
|
|
stop)
|
|
stat_busy "Removing pacman keyring"
|
|
rm -rf /etc/pacman.d/gnupg
|
|
rm_daemon pacman-init
|
|
stat_done
|
|
;;
|
|
|
|
restart)
|
|
$0 stop
|
|
$0 start
|
|
;;
|
|
|
|
*)
|
|
echo "usage: $0 {start|stop|restart}"
|
|
esac
|
|
|
|
exit 0
|