From c7d71de93cc9a60fbaf176a198e7a886ade4c80d Mon Sep 17 00:00:00 2001 From: Chad Huneycutt Date: Tue, 29 Jan 2002 07:24:21 +0000 Subject: 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. --- sys-apps/pcmcia-cs/files/pcmcia.rc6 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys-apps') 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)" -- cgit v1.2.3-65-gdbad