blob: 5b79d8413d7dc0194fd9122a62cef7b9a8485b5e (
plain)
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
26
27
28
29
30
31
32
33
34
|
pre_install() {
/bin/true
}
post_install() {
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
KERNEL_VERSION=2.6.28-LinHES
depmod -v $KERNEL_VERSION > /dev/null 2>&1
echo "# Added For Plextor ConvertX" >> /etc/fstab
echo "usbfs /proc/bus/usb usbfs devmode=0666 0 0" >> /etc/fstab
/bin/true
}
post_upgrade() {
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
KERNEL_VERSION=2.6.28-LinHES
depmod -v $KERNEL_VERSION > /dev/null 2>&1
/bin/true
}
post_remove() {
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
KERNEL_VERSION=2.6.28-LinHES
depmod -v $KERNEL_VERSION > /dev/null 2>&1
sed -i~ -e '/ConvertX/d' -e '/usbfs/d' /etc/fstab
/bin/true
}
op=$1
shift
$op $*
|