mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
243141c37d
a/btrfs-progs-v4.19-x86_64-1.txz: Upgraded. a/haveged-1.9.4-x86_64-2.txz: Rebuilt. rc.haveged: eliminate startup noise. a/kernel-generic-4.19.1-x86_64-1.txz: Upgraded. a/kernel-huge-4.19.1-x86_64-1.txz: Upgraded. a/kernel-modules-4.19.1-x86_64-1.txz: Upgraded. d/cmake-3.12.4-x86_64-1.txz: Upgraded. d/kernel-headers-4.19.1-x86-1.txz: Upgraded. k/kernel-source-4.19.1-noarch-1.txz: Upgraded. Temporarily build in speakup drivers until the modular ones are fixed. Thanks to Didier Spaier. SPEAKUP m -> y SPEAKUP_SYNTH_ACNTPC m -> y SPEAKUP_SYNTH_ACNTSA m -> y SPEAKUP_SYNTH_APOLLO m -> y SPEAKUP_SYNTH_AUDPTR m -> y SPEAKUP_SYNTH_BNS m -> y SPEAKUP_SYNTH_DECEXT m -> y SPEAKUP_SYNTH_DECTLK m -> y SPEAKUP_SYNTH_DTLK m -> y SPEAKUP_SYNTH_DUMMY m -> y SPEAKUP_SYNTH_KEYPC m -> y SPEAKUP_SYNTH_LTLK m -> y SPEAKUP_SYNTH_SOFT m -> y SPEAKUP_SYNTH_SPKOUT m -> y SPEAKUP_SYNTH_TXPRT m -> y l/alsa-lib-1.1.7-x86_64-2.txz: Rebuilt. Fixed PCM interval. Thanks to aaditya. l/xapian-core-1.4.9-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. kernels/*: Upgraded. usb-and-pxe-installers/usbboot.img: Rebuilt.
46 lines
762 B
Bash
46 lines
762 B
Bash
#!/bin/sh
|
|
# Start/stop/restart haveged.
|
|
|
|
PIDFILE="/var/run/haveged.pid"
|
|
HAVEGED_OPTS="-w 1024 -v 1 -p $PIDFILE"
|
|
|
|
# Start haveged:
|
|
haveged_start() {
|
|
if [ -f $PIDFILE ]; then
|
|
echo "haveged is already running as PID $(cat $PIDFILE) " >&2
|
|
exit 3
|
|
elif [ -x /sbin/haveged ]; then
|
|
echo "Starting haveged entropy daemon: /sbin/haveged"
|
|
/sbin/haveged $HAVEGED_OPTS 2> /dev/null
|
|
fi
|
|
}
|
|
|
|
# Stop haveged:
|
|
haveged_stop() {
|
|
if [ -r $PIDFILE ]; then
|
|
echo "Stopping haveged."
|
|
kill $(cat $PIDFILE)
|
|
fi
|
|
}
|
|
|
|
# Restart haveged:
|
|
haveged_restart() {
|
|
haveged_stop
|
|
sleep 1
|
|
haveged_start
|
|
}
|
|
|
|
case "$1" in
|
|
'start')
|
|
haveged_start
|
|
;;
|
|
'stop')
|
|
haveged_stop
|
|
;;
|
|
'restart')
|
|
haveged_restart
|
|
;;
|
|
*)
|
|
echo "usage $0 start|stop|restart"
|
|
exit 2
|
|
esac
|