26 lines
732 B
Bash
26 lines
732 B
Bash
#!/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
|
|
|