File: remove_outdated.sh

package info (click to toggle)
martian-modem 20080625-2
  • links: PTS
  • area: non-free
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,048 kB
  • ctags: 985
  • sloc: ansic: 6,095; sh: 298; makefile: 236
file content (13 lines) | stat: -rwxr-xr-x 284 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
# program was renamed 
if [ -f /usr/sbin/martian_helper ]; then 
	echo "RM martian_helper"
	rm -f /usr/sbin/martian_helper 
fi

# modules were too
moddir=/lib/modules/`uname -r`
files=`find $moddir -name martian_drv.ko`
if [ "$files" != "" ]; then 
	echo "RM $files"
	rm -f $files
fi