From fbccb944d769e0c0ac51433f5beff388701f712d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 15 May 2007 04:52:54 +0000 Subject: [PATCH] ubuntu udev support --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9abe2a1d66..40721d8408 100644 --- a/setup.py +++ b/setup.py @@ -484,5 +484,9 @@ if os.access('/etc/udev/rules.d', os.W_OK): check_call('udevstart', shell=True) print 'success' except: - print >>sys.stderr, "Couldn't reload udev, you may have to reboot" + try: + check_call('/etc/init.d/udev reload, shell=True') + print 'success' + except: + print >>sys.stderr, "Couldn't reload udev, you may have to reboot"