Skip to content

Commit

Permalink
Enable dkms servie with systemctl command
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Mar 11, 2017
1 parent 0c19129 commit b8c4750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dkms.spec
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ rm -rf $RPM_BUILD_ROOT
%if 0%{?fedora} >= 20 || 0%{?rhel} >= 7

%post
%systemd_post %{name}.service
systemctl enable %{name}.service>/dev/null 2>&1

%preun
if [ $1 -eq 0 ]; then
Expand Down

0 comments on commit b8c4750

Please sign in to comment.