mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
ubuntu udev support
This commit is contained in:
parent
98f18fb074
commit
fbccb944d7
4
setup.py
4
setup.py
@ -483,6 +483,10 @@ if os.access('/etc/udev/rules.d', os.W_OK):
|
|||||||
try:
|
try:
|
||||||
check_call('udevstart', shell=True)
|
check_call('udevstart', shell=True)
|
||||||
print 'success'
|
print 'success'
|
||||||
|
except:
|
||||||
|
try:
|
||||||
|
check_call('/etc/init.d/udev reload, shell=True')
|
||||||
|
print 'success'
|
||||||
except:
|
except:
|
||||||
print >>sys.stderr, "Couldn't reload udev, you may have to reboot"
|
print >>sys.stderr, "Couldn't reload udev, you may have to reboot"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user