Skip to content

Commit b46beb6

Browse files
committed
Merge branch 'dev' into dev-stable
2 parents 28ebd52 + 59c8cf5 commit b46beb6

2 files changed

Lines changed: 94 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/usr/bin/env bash
2+
3+
function remove () {
4+
local list
5+
local file
6+
list=($(echo "$@"))
7+
for file in "${list[@]}"; do
8+
if [[ -f ${file} ]]; then
9+
rm -f "${file}"
10+
elif [[ -d ${file} ]]; then
11+
rm -rf "${file}"
12+
fi
13+
done
14+
}
15+
16+
while getopts 'u:' arg; do
17+
case "${arg}" in
18+
u) user="${OPTARG}";;
19+
esac
20+
done
21+
22+
remove /etc/skel/Desktop
23+
remove /etc/skel/.config/gtk-3.0/bookmarks
24+
remove /home/${user}/Desktop/calamares.desktop
25+
remove /home/${user}/.config/gtk-3.0/bookmarks
26+
remove /usr/share/calamares/
27+
28+
remove /etc/polkit-1/rules.d/01-nopasswork.rules
29+
30+
# Delete unnecessary files of archiso.
31+
# See the following site for details.
32+
# https://wiki.archlinux.jp/index.php/Archiso#Chroot_.E3.81.A8.E3.83.99.E3.83.BC.E3.82.B9.E3.82.B7.E3.82.B9.E3.83.86.E3.83.A0.E3.81.AE.E8.A8.AD.E5.AE.9A
33+
34+
remove /etc/systemd/system/getty@tty1.service.d/autologin.conf
35+
remove /root/.automated_script.sh
36+
remove /etc/mkinitcpio-archiso.conf
37+
remove /etc/initcpio
38+
39+
if [[ -f /etc/systemd/journald.conf ]]; then
40+
sed -i 's / Storage = volatile /#Storage = auto /' /etc/systemd/journald.conf
41+
fi
42+
43+
remove /etc/udev/rules.d/81-dhcpcd.rules
44+
remove /etc/systemd/system/{choose-mirror.service,etc-pacman.d-gnupg.mount,getty@tty1.service.d}
45+
46+
# Disabled auto login
47+
sed -i "s/^autologin/#autologin/g" /etc/lightdm.conf
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/usr/bin/env bash
2+
3+
function remove () {
4+
local list
5+
local file
6+
list=($(echo "$@"))
7+
for file in "${list[@]}"; do
8+
if [[ -f ${file} ]]; then
9+
rm -f "${file}"
10+
elif [[ -d ${file} ]]; then
11+
rm -rf "${file}"
12+
fi
13+
done
14+
}
15+
16+
while getopts 'u:' arg; do
17+
case "${arg}" in
18+
u) user="${OPTARG}";;
19+
esac
20+
done
21+
22+
remove /etc/skel/Desktop
23+
remove /etc/skel/.config/gtk-3.0/bookmarks
24+
remove /home/${user}/Desktop/calamares.desktop
25+
remove /home/${user}/.config/gtk-3.0/bookmarks
26+
remove /usr/share/calamares/
27+
28+
remove /etc/polkit-1/rules.d/01-nopasswork.rules
29+
30+
# Delete unnecessary files of archiso.
31+
# See the following site for details.
32+
# https://wiki.archlinux.jp/index.php/Archiso#Chroot_.E3.81.A8.E3.83.99.E3.83.BC.E3.82.B9.E3.82.B7.E3.82.B9.E3.83.86.E3.83.A0.E3.81.AE.E8.A8.AD.E5.AE.9A
33+
34+
remove /etc/systemd/system/getty@tty1.service.d/autologin.conf
35+
remove /root/.automated_script.sh
36+
remove /etc/mkinitcpio-archiso.conf
37+
remove /etc/initcpio
38+
39+
if [[ -f /etc/systemd/journald.conf ]]; then
40+
sed -i 's / Storage = volatile /#Storage = auto /' /etc/systemd/journald.conf
41+
fi
42+
43+
remove /etc/udev/rules.d/81-dhcpcd.rules
44+
remove /etc/systemd/system/{choose-mirror.service,etc-pacman.d-gnupg.mount,getty@tty1.service.d}
45+
46+
# Disabled auto login
47+
sed -i "s/^autologin/#autologin/g" /etc/lightdm.conf

0 commit comments

Comments
 (0)