Skip to content

Commit

Permalink
Added --force to dkms install commands
Browse files Browse the repository at this point in the history
  • Loading branch information
lelegard committed Apr 26, 2017
1 parent 87ac0d7 commit 1ac36fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build-dektec-dkms
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ if $INSTALL; then
sudo rm -rf "$DKMS_INSTALL"
sudo cp -r "$DKMS_DIR" "$DKMS_INSTALL" || cleanexit 1
sudo install -m 644 -o root -g root "$SRCDIR/51-dta.rules" "$SRCDIR/51-dtu.rules" /etc/udev/rules.d/
sudo dkms install -m dektec -v "$VERSION"
sudo dkms install -m dektec -v "$VERSION" --force
cleanexit 0
fi

Expand Down
2 changes: 1 addition & 1 deletion config/dektec-dkms.spec
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ install -m 644 51-dta.rules 51-dtu.rules $RPM_BUILD_ROOT/etc/udev/rules.d
%post
[[ $(/usr/sbin/dkms status | grep dektec | grep "%{version}" | wc -l) -eq 0 ]] && /usr/sbin/dkms add -m dektec -v "%{version}"
/usr/sbin/dkms build -m dektec -v "%{version}"
/usr/sbin/dkms install -m dektec -v "%{version}"
/usr/sbin/dkms install -m dektec -v "%{version}" --force
exit 0

%preun
Expand Down
2 changes: 1 addition & 1 deletion config/postinst.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [[ "$1" = "configure" ]]; then
# Build the initial version of the driver.
[[ $(/usr/sbin/dkms status | grep dektec | grep "{{VERSION}}" | wc -l) -eq 0 ]] && /usr/sbin/dkms add -m dektec -v "{{VERSION}}"
/usr/sbin/dkms build -m dektec -v "{{VERSION}}"
/usr/sbin/dkms install -m dektec -v "{{VERSION}}"
/usr/sbin/dkms install -m dektec -v "{{VERSION}}" --force
fi

exit 0

0 comments on commit 1ac36fe

Please sign in to comment.