Fix dumb typo: Need to check if the number of rc.d scripts has changed

between pre-package-installation and post-package-installation, not
between pre- and pre-.
This commit is contained in:
Colin Percival 2013-12-08 11:03:09 +00:00
parent 44331a4941
commit d626e7e328
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335875
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= firstboot-pkgs
PORTVERSION= 1.1
PORTVERSION= 1.2
CATEGORIES= sysutils
MASTER_SITES= # none
DISTFILES= # none

View file

@ -44,7 +44,7 @@ firstboot_pkgs_run()
nscriptsn=`ls /usr/local/etc/rc.d | wc -l`
# If we have more scripts, request a reboot
if [ $nscriptso -ne $nscriptso ]; then
if [ $nscriptsn -ne $nscriptso ]; then
echo "Requesting reboot after installing packages with rc.d scripts."
touch ${firstboot_sentinel}-reboot
fi