diff options
-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)" |