Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Best way to make a startup script?

    Reply
    Page 2 of 2 | Prev |   1   2 |
    alci | # 11 | 2014-03-24, 16:16 | Report

    Originally Posted by meemorph View Post
    @hopey
    What filesystem are you using? May be a driver module is missing, it should be added to the dependencies of the service. I am using btrfs like SailfishOS.

    If you mount it manually with the script, its to late for the tracker. You can do a
    Code:
    tracker-control -es
    and wait a few minutes. But its only a workaround for pictures and music, not for ambiences.
    My SDCard is formatted using btrfs. Is yours also using btrfs ?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Leinad | # 12 | 2014-03-24, 17:55 | Report

    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!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to Leinad For This Useful Post:
    J4ZZ, meemorph, Schturman

     
    Penguin | # 13 | 2014-03-24, 18:56 | Report

    This looks absolutely great!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Penguin For This Useful Post:
    meemorph

     
    hopey | # 14 | 2014-03-25, 06:40 | Report

    Ok got it working using Leinads script. I don't know what made the difference. I'm using ext4 too.

    Thanks everyone!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to hopey For This Useful Post:
    meemorph

     
    meemorph | # 15 | 2014-03-30, 08:58 | Report

    Originally Posted by hopey View Post
    Ok got it working using Leinads script. I don't know what made the difference. I'm using ext4 too.

    Thanks everyone!
    I would say ext4 is not equal btrfs ;-).

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 2 of 2 | Prev |   1   2 |
vBulletin® Version 3.8.8
Normal Logout