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:
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
|
@ -1,7 +1,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= firstboot-pkgs
|
||||
PORTVERSION= 1.1
|
||||
PORTVERSION= 1.2
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue