File: prerm

package info (click to toggle)
modutils 2.1.85-11
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,020 kB
  • ctags: 1,024
  • sloc: ansic: 9,324; sh: 2,180; lex: 484; yacc: 362; makefile: 309
file content (25 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# pre remove script for the Debian GNU/Linux modutils package

set -e

if [ "$1" = "remove" -o "$1" = "purge" ]
then
	if [ -f /proc/modules ]
	then	
		echo "WARNING: Kernel was compiled with modules support!"
		echo "Removing the modutils package could result in an unusable"
		echo "system if you use modules. Remove this package only if you"
		echo "are really sure of what you are doing."
		echo ""
		echo -n "If you really want to remove modutils type 'yes': "
		read ANSWER
		if [ "$ANSWER" != "yes" ]; then
			echo "Aborting removal of modutils package"
			exit 1
		fi
	fi
fi

/etc/init.d/kerneld stop