🔨 Modify base os motd and issue files
This commit is contained in:
parent
9fd23ac497
commit
4435bab480
2 changed files with 9 additions and 1 deletions
|
@ -98,6 +98,14 @@ rm -rf /etc/skel/.profile
|
|||
ln -sf $FAKE_PATH/src/fake_shell.sh /etc/skel/.profile
|
||||
|
||||
|
||||
#--------[ FAKE//OS Modify System Messages ]--------#
|
||||
if [ -f /etc/motd ]; then mv /etc/motd /etc/motd.backup; fi
|
||||
if ! [ -f /etc/issue.backup ]; then mv /etc/issue /etc/issue.backup; fi
|
||||
echo "[FAKE//OS] \\m \\S{PRETTY_NAME} \\r (\\l)" > /etc/issue
|
||||
echo "" >> /etc/issue
|
||||
|
||||
|
||||
|
||||
#--------[ FAKE//OS Link Existing Users ]--------#
|
||||
TMP_USERS="root $(ls /home)"
|
||||
for USER in $TMP_USERS; do
|
||||
|
|
|
@ -194,8 +194,8 @@ _fake_flush () { #--------[ Flush System Cache ]
|
|||
_fake_upgrade () {
|
||||
echo ""
|
||||
echo "[FAKE//OS] Upgrading to latest Git version..."
|
||||
echo "[FAKE//OS] Upgraded: $(date)"
|
||||
$FAKE_SUDO curl https://fake.onl/fake-os.sh | sh
|
||||
echo "[FAKE//OS] Upgraded: $(date)" >> $FAKE_LOG
|
||||
echo ""
|
||||
echo "Restart shell/terminal to take effect."
|
||||
echo ""
|
||||
|
|
Loading…
Reference in a new issue