View | Details | Raw Unified | Return to bug 22271
Collapse All | Expand All

(-)update_kernel_modules_cetus.sh.orig (-1 / +9 lines)
Lines 29-34 Link Here
29
Usage: $PROG [options]
29
Usage: $PROG [options]
30
Valid options are:
30
Valid options are:
31
	-f, --force	force kernel upgrade
31
	-f, --force	force kernel upgrade
32
	-a, --all	install all kernel modules
32
	-t, --type	install kernel with specified flavour (ovz-smp, std-def, etc)
33
	-t, --type	install kernel with specified flavour (ovz-smp, std-def, etc)
33
	-r, --release	install kernel with specified release (alt10, alt22, etc)
34
	-r, --release	install kernel with specified release (alt10, alt22, etc)
34
	-h, --help	show this text and exit
35
	-h, --help	show this text and exit
Lines 37-49 Link Here
37
}
38
}
38
39
39
#parse command line options
40
#parse command line options
40
TEMP=`getopt -n $PROG -o f,t:,r:,h -l force,type:,release:,help -- "$@"` || show_help
41
TEMP=`getopt -n $PROG -o a,f,t:,r:,h -l all,force,type:,release:,help -- "$@"` || show_help
41
eval set -- "$TEMP"
42
eval set -- "$TEMP"
42
43
43
while :; do
44
while :; do
44
        case "$1" in
45
        case "$1" in
45
                --) shift; break
46
                --) shift; break
46
                        ;;
47
                        ;;
48
                -a|--all) all=1
49
            		;;
47
                -f|--force) force=1
50
                -f|--force) force=1
48
                        ;;
51
                        ;;
49
		-t|--type) shift ; kernel_flavour="$1"
52
		-t|--type) shift ; kernel_flavour="$1"
Lines 134-139 Link Here
134
	if rpm -q $module_pkgname-"$modules_kernel_flavour" &>/dev/null; then
137
	if rpm -q $module_pkgname-"$modules_kernel_flavour" &>/dev/null; then
135
		message "$module_pkgname is installed, trying to update..."
138
		message "$module_pkgname is installed, trying to update..."
136
		$SUDO apt-get install -y "$module_pkgname-$newkernel_ver_flav_rel"
139
		$SUDO apt-get install -y "$module_pkgname-$newkernel_ver_flav_rel"
140
	else
141
		if [ $all == 1 ]; then
142
			message "$module_pkgname is not istalled, trying to install..."
143
			$SUDO apt-get install -y "$module_pkgname-$newkernel_ver_flav_rel"
144
		fi
137
	fi
145
	fi
138
done
146
done
139
147

Return to bug 22271