mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
pkg: also register rc.installer as shell on install
This commit is contained in:
parent
8ea003a058
commit
bde361f78a
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user