Skip to content

Commit

Permalink
use sysrc instead of making potential duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Feb 24, 2021
1 parent dd54313 commit b1b8a70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions etc/rc.d/firstboot
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ firstboot_start()
/usr/sbin/mport install bsdstats
/sbin/ipfw enable firewall
fi
echo "bsdstats_enable=\"YES\"" >> /etc/rc.conf
/usr/sbin/sysrc bsdstats_enable="YES"
fi

echo -e "\r${yellow}Do you wish to enable a graphical environment? (yes or no)${lsuffix}"
Expand All @@ -49,11 +49,11 @@ firstboot_start()
echo "KDE detected"
echo "ttyv8 \"/usr/local/bin/kdm -nodaemon\" xterm on secure" >> /etc/ttys
else
# GNUSTEP/WindowMaker/mlogind
# xfce4/mlogind
/sbin/ipfw disable firewall
/usr/sbin/mport install midnightbsd-desktop
/sbin/ipfw enable firewall
echo "mlogind_enable=\"YES\"" >> /etc/rc.conf
/usr/sbin/sysrc mlogind_enable="YES"
fi
echo "Please restart to enable graphical login."
echo -e "\r${yellow}Done.${lsuffix}"
Expand Down

0 comments on commit b1b8a70

Please sign in to comment.