Skip to contentSkip to conversation

Modification to install in support of usb remover

PATCH Stephen Williams 3 participants 4 messages Jun 8, 2001 – Jun 11, 2001

lore
Share & tools
lore
#0 lore raw

Here are diffs to the hotplug.spec file that creates the /var/run/usb directory (with correct permissions) at install time. This should finish up the usb remover support. I've updated the README to include mention of the /var/run/usb directory, and I've included in the spec file the steps to make the directory. I've only bumped the spec release number because this is harmless to the named release.

I've included the diffs. I can do the commit myself, but I just want to check first that this is OK with the existing cadre.

Signature · 4 lines
Steve Williams                "The woods are lovely, dark and deep.
[email protected]              But I have promises to keep,
[email protected]            and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."

Index: README
===================================================================
RCS file: /cvsroot/linux-hotplug/admin/README,v
retrieving revision 1.5

README +7 -2
diff -u -r1.5 README
@@ -61,8 +61,13 @@
 
 	# mkdir -p /etc/hotplug
 	# cp -r etc/hotplug/* /etc/hotplug
- 
- (4)  Make your system start hotplugging (and maybe coldplugging,
+
+ (4)  Make the directory in /var/run for use remove support:
+
+	# mkdir -p /var/run/usb
+	# chmod 600 /var/run/usb
+
+ (5)  Make your system start hotplugging (and maybe coldplugging,
       if you installed the right usb and pci utilities) after it's
       booted and filesystems are mounted.  On RedHat systems:
 

Index: hotplug.spec
===================================================================
RCS file: /cvsroot/linux-hotplug/admin/hotplug.spec,v retrieving revision 1.10

hotplug.spec +7 -1
diff -u -r1.10 hotplug.spec
@@ -1,7 +1,7 @@
 Summary:		Linux Hotplug Scripts
 Name:			hotplug
 Version:		2001_04_24
-Release:		1
+Release:		2
 Group:			Applications/System
 License:		GPL
 Url:			http://linux-hotplug.sourceforge.net/
@@ -24,6 +24,7 @@
 mkdir -p ${RPM_BUILD_ROOT}/sbin
 mkdir -p ${RPM_BUILD_ROOT}/etc/hotplug
 mkdir -p ${RPM_BUILD_ROOT}/etc/rc.d/init.d
+mkdir -p ${RPM_BUILD_ROOT}/var/run/usb
 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
 	
 # install the main hotplug script
@@ -39,6 +40,8 @@
 cp -a *.8  ${RPM_BUILD_ROOT}%{_mandir}/man8
 
 %files
+%attr(0600,root,root) %dir /var/run/usb
+
 %defattr(-,root,root)
 /sbin/*
 /etc/rc.d/init.d/*
@@ -64,6 +67,9 @@
 
 
 %changelog
+* Fri Jun 8 2001 Steve Williams <[email protected]>
+- added the /var/run/usb directory to spec file
+
 * Tue Apr 24 2001 Greg Kroah-Hartman <[email protected]>
 - added the hotplug.8 manpage written by Fumitoshi UKAI <[email protected]>
 
#2 lore raw
In reply to Stephen Williams
Quoted 1 line · [email protected] said:

0600 for a dir ?

Yeah, I caught that and fixed it already. Thanks!

Signature · 11 lines
Steve Williams                "The woods are lovely, dark and deep.
[email protected]              But I have promises to keep,
[email protected]            and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."



_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#3 lore raw
In reply to Stephen Williams
Quoted 10 lines · Stephen Williams

Here are diffs to the hotplug.spec file that creates the /var/run/usb directory (with correct permissions) at install time. This should finish up the usb remover support. I've updated the README to include mention of the /var/run/usb directory, and I've included in the spec file the steps to make the directory. I've only bumped the spec release number because this is harmless to the named release.

I've included the diffs. I can do the commit myself, but I just want to check first that this is OK with the existing cadre.

Looks ok (with the change to the directory permissions). Go ahead and commit it.

Maybe I should roll another release soon.

thanks,

greg k-h

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel