From 5e5a613b8fbf21457728edcdb3431c706e96192e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 10 May 2010 11:50:27 -0600 Subject: [PATCH] Linux prs 500 udev rule: Use SUBSYSTEMS instead of the deprecated BUS --- src/calibre/linux.py | 2 +- src/calibre/manual/develop.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/linux.py b/src/calibre/linux.py index d0ac82e319..331783c775 100644 --- a/src/calibre/linux.py +++ b/src/calibre/linux.py @@ -313,7 +313,7 @@ class PostInstall: with open(os.path.join(base, '95-calibre.rules'), 'wb') as udev: self.manifest.append(udev.name) udev.write('''# Sony Reader PRS-500\n''' - '''BUS=="usb", SYSFS{idProduct}=="029b", SYSFS{idVendor}=="054c", MODE="660", GROUP="%s"\n'''%(group,) + '''SUBSYSTEMS=="usb", SYSFS{idProduct}=="029b", SYSFS{idVendor}=="054c", MODE="660", GROUP="%s"\n'''%(group,) ) except: if self.opts.fatal_errors: diff --git a/src/calibre/manual/develop.rst b/src/calibre/manual/develop.rst index f061100f6d..ca067e45bc 100644 --- a/src/calibre/manual/develop.rst +++ b/src/calibre/manual/develop.rst @@ -152,7 +152,7 @@ Linux development environment used in windows and OS X. Alternatively, you can install |app| from source. Instructions for setting up a development environment from source are in the INSTALL file in the source tree. Here we will address using the binary a runtime. -Install the |app| using the binary installer. The opena terminal and change to the previously checked out |app| code directory, for example:: +Install the |app| using the binary installer. Then open a terminal and change to the previously checked out |app| code directory, for example:: cd /home/kovid/work/calibre