mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
Revert "pkg: advertising the root shell menu isn't useful"
This reverts commit 7030a38a702095902b23b6549c1cb707fd65b361. Avoids a warning on bootup when done. It may throw people off.
This commit is contained in:
parent
ffba54f56a
commit
313a8f2ace
@ -1,3 +1,9 @@
|
||||
echo "Updating /etc/shells"
|
||||
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
|
||||
|
||||
echo "Registering root shell"
|
||||
pw usermod -n root -s /usr/local/etc/rc.initial
|
||||
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
echo "Resetting root shell"
|
||||
pw usermod -n root -s /bin/csh
|
||||
|
||||
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
|
||||
|
||||
echo "Unhooking from /etc/rc"
|
||||
cp /etc/rc /etc/rc.bak
|
||||
tail -n +5 /etc/rc.bak > /etc/rc
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user