5 package=openvswitch-datapath-dkms
8 version=`dpkg-query -W -f='${Version}' "$package" \
9 |rev|cut -d- -f2-|rev|cut -d':' -f2|tr -d "\n"`
11 isadded=`dkms status -m "$name" -v "$version"`
13 if [ "x${isadded}" = "x" ] ; then
14 dkms add -m "$name" -v "$version"
17 if [ "$1" = 'configure' ] ; then
18 dkms build -m "$name" -v "$version" && dkms install -m "$name" -v "$version" || true