* Switched to Firefox * Midori was crashing too often * Rewrote the wallpaper code * Should fix issue where no wallpaper was shown if running from UFD * The pacman mirrorlist is now a static list. * This needs manually updated at build-time Cleanup * Disabled console screen blanking * Fixed typo preventing aliases from loading correctly * mount-all-volumes now removes /media/hhtech properly * Removed leftover netctl files * Removed leftover nodm BREAKING: Moved config files back inside UFD/arch instead of UFD/config
30 lines
1.3 KiB
Bash
30 lines
1.3 KiB
Bash
#!/bin/bash
|
|
#
|
|
## Mount all volumes read-only
|
|
|
|
# Fix issue where first device is mounted under /media/wktech/
|
|
udevil mount tmpfs >/dev/null 2>&1
|
|
udevil umount /media/wktech/tmpfs >/dev/null 2>&1
|
|
udevil umount /media/tmpfs >/dev/null 2>&1
|
|
sleep 1s
|
|
sudo rmdir /media/wktech/* -p >/dev/null 2>&1
|
|
sudo rmdir /media/* -p >/dev/null 2>&1
|
|
|
|
# Mount all volumes
|
|
echo "Mounting all volumes"
|
|
regex="/dev/((h|s)d[a-z]|md)[0-9]+"
|
|
for volume in $(inxi -Dopxx | grep -E "$regex" | sed -r "s#.*($regex).*#\1#" | sort); do
|
|
if grep -q "$volume" /proc/mounts; then
|
|
if ! mount | grep "/run/archiso/bootmnt" | grep -q "$volume"; then
|
|
# Show what's already mounted except the WK_ARCH boot device
|
|
echo "$volume: (Already) mounted $(mount | grep "$volume" | sed -r 's/^\S+ (on.*) type .*/\1/') ($(df -h "$volume" | tail -1 | awk '{print $3, $4}' | sed -r 's/(K|M|G|T|) (.*[0-9])(K|M|G|T|)$/ \1b used, \2 \3b free/'))"
|
|
fi
|
|
else
|
|
if udevil mount -o ro $volume >/dev/null 2>&1; then
|
|
echo "$volume: Mounted $(mount | grep "$volume" | sed -r 's/^\S+ (on.*) type .*/\1/') ($(df -h "$volume" | tail -1 | awk '{print $3, $4}' | sed -r 's/(K|M|G|T|) (.*[0-9])(K|M|G|T|)$/ \1b used, \2 \3b free/'))"
|
|
else
|
|
echo "$volume: Failed to mount"
|
|
fi
|
|
fi
|
|
done
|
|
echo "Done."
|