I’ve 2 network drives on one subnet (nfs and samba). I would like to access them only if computer is connected to particular ssid (subnet).

I’m using gnome primarily. And files stops responding if mount points can’t be accessed. There is no real way to recover from this apart from connecting to network, unmount and then change network.

I would like those drives to be accessed by system only if they are reachable.

  • corsicanguppy@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    12
    ·
    14 hours ago

    Let’s avoid systemd solutions. They’ll just lock you deeper into lennart’s cancer.

    • exu@feditown.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 hours ago

      Imagine using a well designed set of tools instead of parts stuck in the 90s

    • dustycups@aussie.zone
      link
      fedilink
      arrow-up
      3
      ·
      9 hours ago

      If you have systemd installed then using it is fine.
      Genuine question: what init do you use & how would you do this? Of course it doesn’t need to involve init.

      • caseyweederman@lemmy.ca
        link
        fedilink
        arrow-up
        4
        ·
        6 hours ago

        They just reach into their computer case and tickle the pins on the CPU when they want to initialize PID 1.