View Single Post
Posts: 594 | Thanked: 1,094 times | Joined on Aug 2012 @ Rhine
#12
BIG thanks too meemorph, now everything works great again!
  • ambiances are used from sdcard
  • images are visible in gallery
  • changes in app-order are persistant

i kept everything very simple, this is my config for ext4:

mount-sd.custom.sh
Code:
#!/bin/bash

ACTION=$1

if [ "$ACTION" = "add" ]; then
    mount /dev/mmcblk1p1 /mnt/sd
    mount -o bind /mnt/sd/.home /home/nemo
    mount -o bind /mnt/sd/.android /data/sdcard
else
  umount /data/sdcard
  umount /home/nemo
  umount /mnt/sd
fi
mount-custom.service
Code:
[Unit]
Description=Handle custom sdcard
After=local-fs.target
RequiresMountsFor=/home

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/mount-sd.custom.sh add
ExecStop=/usr/sbin/mount-sd.custom.sh remove

[Install]
WantedBy=multi-user.target
Great!
 

The Following 3 Users Say Thank You to Leinad For This Useful Post: