pkg: also register rc.installer as shell on install

This commit is contained in:
Franco Fichtner 2016-08-08 19:08:45 +02:00
parent 8ea003a058
commit bde361f78a
2 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,10 @@ cp /etc/shells /etc/shells.bak
(grep -v /usr/local/etc/rc.initial /etc/shells.bak; \
echo /usr/local/etc/rc.initial) > /etc/shells
rm -f /etc/shells.bak
cp /etc/shells /etc/shells.bak
(grep -v /usr/local/etc/rc.installer /etc/shells.bak; \
echo /usr/local/etc/rc.installer) > /etc/shells
rm -f /etc/shells.bak
echo "Registering root shell"
pw usermod -n root -s /usr/local/etc/rc.initial

View File

@ -5,6 +5,9 @@ echo "Updating /etc/shells"
cp /etc/shells /etc/shells.bak
(grep -v /usr/local/etc/rc.initial /etc/shells.bak) > /etc/shells
rm -f /etc/shells.bak
cp /etc/shells /etc/shells.bak
(grep -v /usr/local/etc/rc.installer /etc/shells.bak) > /etc/shells
rm -f /etc/shells.bak
echo "Updating /boot/loader.conf"
touch /boot/loader.conf