From e4bee02bd58958d8a08ad068fee5ccd194bb4de3 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Thu, 15 Mar 2007 21:59:25 +0000 Subject: [PATCH] Rename tag 'hotplug' into 'agent' Makefile: Make backups of /etc/pamusb.conf before overwriting --- Makefile | 2 +- doc/pamusb.conf | 11 +++++------ tools/pamusb-agent | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index b8defec..d19be8e 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,7 @@ install : all $(MKDIR) -p $(CONFS_DEST) $(DOCS_DEST) $(MANS_DEST) $(TOOLS_DEST) $(PAM_USB_DEST) $(INSTALL) -m755 $(PAM_USB) $(PAM_USB_DEST) $(INSTALL) -m755 $(PAMUSB_CHECK) $(TOOLS_SRC)/$(PAMUSB_CONF) $(TOOLS_SRC)/$(PAMUSB_AGENT) $(TOOLS_DEST) - $(INSTALL) -m644 $(CONFS) $(CONFS_DEST) + $(INSTALL) -b -m644 $(CONFS) $(CONFS_DEST) $(INSTALL) -m644 $(DOCS) $(DOCS_DEST) $(INSTALL) -m644 $(MANS) $(MANS_DEST) diff --git a/doc/pamusb.conf b/doc/pamusb.conf index b153461..1a3f900 100644 --- a/doc/pamusb.conf +++ b/doc/pamusb.conf @@ -1,6 +1,5 @@ @@ -16,7 +15,7 @@ See http://www.pamusb.org/doc/configuring diff --git a/tools/pamusb-agent b/tools/pamusb-agent index c4c3588..eb686c7 100755 --- a/tools/pamusb-agent +++ b/tools/pamusb-agent @@ -155,7 +155,7 @@ events = { 'unlock' : [] } -for hotplug in user.findall('hotplug'): +for hotplug in user.findall('agent'): events[hotplug.get('event')].append(hotplug.text) deviceName = user.find('device').text