summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Huneycutt <chadh@gentoo.org>2002-01-29 07:24:21 +0000
committerChad Huneycutt <chadh@gentoo.org>2002-01-29 07:24:21 +0000
commit09ba5bf2e873e5c9e34b3aaafcb3e4d7f55e178d (patch)
treee3ff90f32ec477b802d8b4b0417f641a8eb7f99a /sys-apps
parentI think the pcmcia-cs utils should keep runtime files (stab, for instance) (diff)
downloadhistorical-09ba5bf2e873e5c9e34b3aaafcb3e4d7f55e178d.tar.gz
historical-09ba5bf2e873e5c9e34b3aaafcb3e4d7f55e178d.tar.bz2
historical-09ba5bf2e873e5c9e34b3aaafcb3e4d7f55e178d.zip
If /var/lib/pcmcia/stab exists, it confuses /etc/pcmcia/network (since we
are using /var/run/stab). This init script blows it away just in case it got accidentally created.
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/pcmcia-cs/files/pcmcia.rc65
1 files changed, 5 insertions, 0 deletions
diff --git a/sys-apps/pcmcia-cs/files/pcmcia.rc6 b/sys-apps/pcmcia-cs/files/pcmcia.rc6
index 8ac1f0442259..1d041e8698d3 100644
--- a/sys-apps/pcmcia-cs/files/pcmcia.rc6
+++ b/sys-apps/pcmcia-cs/files/pcmcia.rc6
@@ -31,6 +31,11 @@ start() {
if [ -r ${RUN}/stab ] ; then
cat ${RUN}/stab | cleanup
fi
+ # if /var/lib/pcmcia exists (and sometimes it gets created accidentally if you run
+ # pcmcia-cs apps w/out the proper flags), then it will really confuse the process
+ if [ -d /var/lib/pcmcia ] ; then
+ rm -rf /var/lib/pcmcia
+ fi
if [ -z "`fgrep ds /proc/modules`" ] ; then
eerror "You need to load the pcmcia modules ($PCIC) and ds)"