* Added build-wk script * This will (hopefully) keep the arch-hh folder clean allowing for a better git workflow * Rebuilt the default settings for wktech for most programs * Made the theme/icons more consistant between programs * Changed whiskermenu to more closely match a Windows Start Menu * Lots of hw-diags updates: * Connects to the network automatically * Copies all results files to $HOME/Tickets * Creates valid tgz archives of the results * Uses `mktemp` for setting TMP_DIR * mount-all-drives now opens the FileManager if lauched w/ Super+M * Probably more...
20 lines
450 B
Bash
20 lines
450 B
Bash
#!/bin/bash
|
|
#
|
|
## Mount all volumes read-only
|
|
|
|
echo "Mounting all volumes"
|
|
regex="/dev/((h|s)d[a-z]|md)[0-9]+"
|
|
for v in $(inxi -Do | grep -E "$regex" | sed -r "s#.*($regex).*#\1#"); do
|
|
echo -n " $v: "
|
|
if udevil mount -o ro $v >>/dev/null 2>&1; then
|
|
echo "Mounted."
|
|
else
|
|
echo "Failed to mount."
|
|
fi
|
|
done
|
|
|
|
if [[ "$1" == "foh" && -n $DISPLAY ]]; then
|
|
sleep 1s
|
|
exo-open --launch FileManager "$HOME"
|
|
fi
|
|
echo "Done."
|