File: stage2

package info (click to toggle)
base-config 0.33.2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 472 kB
  • ctags: 171
  • sloc: sh: 777; perl: 538; makefile: 47; ansic: 27
file content (17 lines) | stat: -rwxr-xr-x 578 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e
. /usr/share/debconf/confmodule

if [ -e /root/dbootstrap_settings ]; then
	. /root/dbootstrap_settings || true
fi

# Check whether the system needs pcmcia.
db_get base-config/remove-pcmcia
if [ "$RET" = true -a "$PCMCIA" != yes ]; then
	echo pcmcia-cs purge | dpkg --set-selections
	echo pcmcia-modules-`uname -r` purge | dpkg --set-selections
	# In a sane world, I would not need to do this. Welcome to my world.
	rm -rf /etc/pcmcia /lib/modules/`uname -r`/pcmcia
	depmod -a >/dev/null || true
	# Delete lines above if/when those files are registed with dpkg.
fi