Commit 7c52f4b6 authored by Oliver Christoph Johannes Rippel's avatar Oliver Christoph Johannes Rippel
Browse files

Merge branch 'dev_ubuntu20.04_rclocal' into 'master'

adapt rc.local.sh to work with mindstorms.startup directory

See merge request !14
parents 88ae8a05 d98a6a4d
......@@ -65,6 +65,7 @@ done
# Mount all partitions read-only
echo "Mounting all available partitions read-only ..."
chmod o+rx /mnt
for PART in /dev/disk/by-id/*; do
DEVICE="$( readlink -f "$PART" )"
if ! grep -q "^$DEVICE " /etc/mtab; then
......@@ -138,7 +139,7 @@ for SWP in /mnt/localfs/*/mindstorms.swp; do
done
# Remove work directory if not mounted
if [! mountpoint -q /home/mindstorms/work] && [! PERSISTENT]; then
if ! mountpoint -q /home/mindstorms/work && ! PERSISTENT; then
echo "Removing work directory as no available mountpoint found."
rm -rf /home/mindstorms/work
fi
......@@ -163,6 +164,7 @@ for PART in /mnt/localfs/*; do
echo "Unmounting ${PART}."
umount "$PART" 2>/dev/null
done
chmod o-rx /mnt
# HACK: re-enable gnome's automount functionality.
echo "Re-enabling gnome's automount functionality ..."
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment