Initial commit
This commit is contained in:
25
customcd/files/root/autorun3
Normal file
25
customcd/files/root/autorun3
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# autorun3
|
||||
# Rescue CD Backup & Restore Utility graphical client startup
|
||||
# version 7.2.5
|
||||
# Rod Wright 1/16/2024
|
||||
# Refer to CHANGELOG file for details.
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
/etc/init.d/NetworkManager stop
|
||||
export PATH=$PATH:/root/rescuebru
|
||||
|
||||
totalmem=`free|grep Mem:|awk '{print $2}'`
|
||||
|
||||
if [ "$totalmem" -lt 1000000 ]; then
|
||||
rm -f /root/.zshrc
|
||||
rm -f /root/.bashrc
|
||||
cp /root/zshrc.rescuebru /root/.zshrc
|
||||
cp /root/bashrc.rescuebru /root/.bashrc
|
||||
else
|
||||
rm -f /root/.config/autostart/Terminal.desktop
|
||||
cp /root/xrescuebru.desktop /root/.config/autostart/
|
||||
rm -f /root/.config/autostart/Terminal.desktop
|
||||
/usr/bin/eject >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user