ubuntu udev support

This commit is contained in:
Kovid Goyal 2007-05-15 04:52:54 +00:00
parent 98f18fb074
commit fbccb944d7

View File

@ -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"