Fixed bug adding 'source' line to /etc/pcmcia/config. We were adding it

every time 'make install' was run.
This commit is contained in:
mark 2000-01-13 19:59:36 +00:00
parent 18aeb2a290
commit 8cb595b631
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ install:
mv -f $(PCMCIA_DIR)/wlan-ng.conf $(PCMCIA_DIR)/wlan-ng.conf.O ; \
fi ; \
cp -p wlan-ng.conf $(PCMCIA_DIR) ; \
if grep -vsq 'source.*\.\/\*\.conf$$' $(PCMCIA_DIR)/config ; then \
if grep -vsq 'source.*wlan-ng' $(PCMCIA_DIR)/config ; then \
if ! grep -sq 'source.*\.\/\*\.conf$$' $(PCMCIA_DIR)/config ; then \
if ! grep -sq 'source \.\/wlan-ng.conf' $(PCMCIA_DIR)/config ; then \
mv -f $(PCMCIA_DIR)/config $(PCMCIA_DIR)/config.O ; \
( echo "source ./wlan-ng.conf"; cat $(PCMCIA_DIR)/config.O) > $(PCMCIA_DIR)/config ; \
fi ; \