Posts by thomasbone

    It did not work.

    I think, I identified the problem, I lack sufficient understanding how system.d works.

    Below is the same info as in my last post.

    But never mind, I will try to figure it out from here and may come back when I really get stuck.

    Thanks again mglae and chewitt,

    Thomas

    http://ix.io/3ydI

    Thanks for your suggestions, but it did not work, the timecapsule was not mounted.

    Here is a link to my pastekodi: http://ix.io/3y67

    Output of arp -a

    Code
    kodipi:~ # arp -a
    media-storage-1.B47Homenet (192.168.50.12) at 00:24:36:a4:31:9a [ether]  on eth0
    ? (192.168.50.213) at 04:d9:f5:29:b0:b0 [ether]  on eth0
    Thomass-iMac.B47Homenet (192.168.50.3) at 3c:07:54:34:2a:6b [ether]  on eth0
    RT-AX92U-ADE0.B47Homenet (192.168.50.1) at 04:d9:f5:29:ad:e0 [ether]  on eth0
    kodipi:~ # 

    These are the two system.d files according to your instructions:

    storage-media_storage_1.mount

    wait-for-server.service

    Code
    [Unit]
    Description=Wait for server
    After=time-sync.target
    
    [Service]
    Type=oneshot
    ExecStart=/bin/sh -c "until ping -c 1 -W 3 192.168.50.12;do sleep 1;done"
    StandardOutput=null
    #StandardError=null
    RemainAfterExit=yes

    When I reboot just the pi, leaving the Timecapsule on, it works.

    So, somehow, system.d is not waiting for the TC to be available before running the mount scirpt.

    (BTW, I removed the second TC to simplify for the time being.)

    Both Timecapsules are online, but Kodi boots so fast, the TCs are not ready when the mounting script runs.

    Is there a possibility to delay the mounting process until the TCs have been successfully pinged?

    I tried the following, but it failed.

    The path for the file below is: ~/.config/system.d/storage-media_storage_1.mount

    After turning on the Raspberry Pi and the Timecapsule I ran systemctl status storage-media_storage_1.mount

    and got the following output:

    Any idea, what to try next?

    Thanks,

    Thomas

    Hi everyone,

    I am using chewitt's solution below on a RPI 3 with an old Apple Timecapsule. It works well when i first turn on the Timecapsule and wait until it is visible (pingable) on my LAN and then turn on the PI. But when I turn on everything at the same time, the Timecapsule does not get mounted, because Libreelect boots so fast. Is there a way to include a check for network availability of the Timecapsule in the mounting scrit below?

    Thanks,

    Thomas

    ^ You are missing the [install] section .. so a copy/paste error as predicted :)