Skip to content
Snippets Groups Projects
Commit d98a6a4d authored by Dominik Mehlem's avatar Dominik Mehlem
Browse files

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

parent 88ae8a05
No related branches found
No related tags found
1 merge request!14adapt rc.local.sh to work with mindstorms.startup directory
......@@ -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 ..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment