blob: 71babb85e72d53b994a5de3dcd5d8361049d0ebb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# This is a script called from the installation script fix-system2.
# Its purpose is to remove custom live-only stuff from a just-installed
# system.
# $1 is the path to the installed system root directory.
INSTALL=$1
if [ -z "${INSTALL}" ] || [ ! -f /etc/rc.conf ]; then
echo "ERROR: delarch installation adjustments failed:"
echo " Please check installation mount point (${INSTALL})"
exit 1
fi
rm -f "${INSTALL}/root/Desktop/Install Arch Linux.desktop"
rm -f "${INSTALL}/root/Desktop/Larch Documentation.desktop"
sed "s|^autologin|#autologin|" -i "${INSTALL}/etc.schlim.conf"
if [ -f ${INSTALL}/etc/rc.local.orig ]; then
mv ${INSTALL}/etc/rc.local.orig ${INSTALL}/etc/rc.local
fi
if [ -f ${INSTALL}/etc/rc.local.shutdown.orig ]; then
mv ${INSTALL}/etc/rc.local.shutdown.orig ${INSTALL}/etc/rc.local.shutdown
fi
|