diff options
author | 2002-01-29 07:24:21 +0000 | |
---|---|---|
committer | 2002-01-29 07:24:21 +0000 | |
commit | c7d71de93cc9a60fbaf176a198e7a886ade4c80d (patch) | |
tree | 6332aba86fd7db00310d6ca9370d8ce87e9d8054 /sys-apps | |
parent | I think the pcmcia-cs utils should keep runtime files (stab, for instance) (diff) | |
download | gentoo-2-c7d71de93cc9a60fbaf176a198e7a886ade4c80d.tar.gz gentoo-2-c7d71de93cc9a60fbaf176a198e7a886ade4c80d.tar.bz2 gentoo-2-c7d71de93cc9a60fbaf176a198e7a886ade4c80d.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.rc6 | 5 |
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)" |