https://bugs.kde.org/show_bug.cgi?id=316655
Kjetil Kjernsmo <kje...@kjernsmo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kje...@kjernsmo.net --- Comment #25 from Kjetil Kjernsmo <kje...@kjernsmo.net> --- FWIW, for me, the NFS server is stable, but I couldn't bring the laptop along without jumping a lot of hoops, and I made this a lot less annoying by using a NetworkManager dispatcher-script: #!/usr/bin/perl use strict; use warnings; # Find the connection UUID with "nmcli con show" in terminal. # All NetworkManager connection types are supported: wireless, VPN, wired... #!/usr/bin/perl use strict; use warnings; # Find the connection UUID with "nmcli con show" in terminal. # All NetworkManager connection types are supported: wireless, VPN, wired... use Data::Dumper; my %connections = ( 'some-uuid => 'ethernet', 'some-other-uuid' => 'wifi' ); my ($name, $event) = @ARGV; my $conn = $ENV{'CONNECTION_UUID'}; print "Connection: $conn \nName: $name\nEvent: $event\n"; if ($event eq 'up') { # New connection is coming up if ($connections{$conn}) { # We are at home unless (mounted_ok()) { system("coming-home.sh"); } } } if ($event eq 'connectivity-change' && $ENV{'CONNECTIVITY_STATE'} eq 'NONE') { if (mounted_ok()) { system("leaving-home.sh"); } } sub mounted_ok { my $home_mounted = 0; open(FH, '<', '/proc/mounts') || die "Could not read mounts"; while (<FH>) { if (m/site nfs/) { $home_mounted = 1; last; } } Where the two shell scripts do the actual mounts/unmounts (and other housekeeping tasks in my case). With this, I only need to disconnect the network before I pull the plug. -- You are receiving this mail because: You are watching all bug changes.