Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 220897 Details for
Bug 299650
net-misc/networkmanager: restart /etc/init.d/netmount every time a new connection is made
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
new NetworkManager nfs script
01-netmount-up-down.rc (text/plain), 636 bytes, created by
Fabio Erculiani (RETIRED)
on 2010-02-23 23:35:11 UTC
(
hide
)
Description:
new NetworkManager nfs script
Filename:
MIME Type:
Creator:
Fabio Erculiani (RETIRED)
Created:
2010-02-23 23:35:11 UTC
Size:
636 bytes
patch
obsolete
>#!/bin/sh > ># these are the args passed by NetworkManager >MY_DEV_NAME="$1" >MY_NM_ACTION="$2" > ># restart network mounts service in any case, networking setup is changed ># FIXME, remove: just restart myself, do not restart ># services that depend on me >if [ "${MY_NM_ACTION}" = "up" ]; then > mount -at afs,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4,ocfs2,shfs,smbfs & > MY_PID=$! > > # give script 20 seconds then kill > # it happens with unavailable servers > sleep 20 > MY_PID_ALIVE=$(kill -0 ${MY_PID} &> /dev/null) > # kill if alive > if [ "${MY_PID_ALIVE}" = "0" ]; then > kill ${MY_PID} || kill -9 ${MY_PID} > fi > >fi >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 299650
:
215188
| 220897