diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | myautomount.spec | 11 |
2 files changed, 11 insertions, 2 deletions
@@ -18,6 +18,8 @@ Use environment variable `MYA_PREFIX` for testing. ## Improvements * Add notifications, perhaps with [xnotify](https://github.com/phillbush/xnotify)? +* Implement the feature to hide sdb and sdc, etc., because one does not normally place filesystems on the raw drive. +* Add dpkg recipe # References [1]: https://github.com/project-trident/trident-utilities/blame/master/src-go/automount/main.go diff --git a/myautomount.spec b/myautomount.spec index cc821f0..97d9f89 100644 --- a/myautomount.spec +++ b/myautomount.spec @@ -17,7 +17,7 @@ %global use_commit 1 %define date %(/usr/bin/date +%%Y%%m%%d) %if 0%{?use_commit} -%global git_commit fc6313650f03b2c1bb097d7619478aa1fac6a39c +%global git_commit 0d5f8b7657527eab8380f5aa81ecd072714cf13c %{?git_commit:%global git_commit_hash %(c=%{git_commit}; echo ${c:0:7})} %else %global git_commit 0.0.1 @@ -75,10 +75,17 @@ exit 0 rm -rf %{buildroot} %preun -exit 0 %postun +%if 0%{?fedora} || 0%{?rhel} >= 7 +%posttrans +update-desktop-database 1>/dev/null 2>&1 || : +%else +%post +update-desktop-database 1>/dev/null 2>&1 || : +%endif + %files %config %attr(0644, -, -) %{_sysconfdir}/%{name}.conf %{_sysconfdir}/xdg/autostart |