Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Olf0 authored Jan 26, 2019
1 parent 0aec10f commit a4c1b02
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions rpm/crypto-sdcard.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Name: crypto-sdcard
Summary: Configuration files for unlocking and mounting encrypted SD-cards automatically
Version: 0.6
Release: 2
Release: 3
Group: System/Base
Distribution: SailfishOS
Vendor: olf
Expand Down Expand Up @@ -50,21 +50,6 @@ cp -R systemd polkit-1 udev %{buildroot}%{_sysconfdir}/
%dir %{_sysconfdir}/%{name}

%post
if [ "$1" = "1" ]
# First install
then
# Delete manually installed files from versions before 0.4 and pre-releases on TJC
rm -f \
%{_sysconfdir}/udev/rules.d/81-crypto-sd.rules \
%{_sysconfdir}/udev/rules.d/82-crypto-sd.rules \
%{_sysconfdir}/polkit-1/localauthority/50-local.d/80-crypto-sd-udisks.pkla \
%{_sysconfdir}/polkit-1/localauthority/50-local.d/69-crypto-sd-udisks.pkla \
%{_sysconfdir}/systemd/system/crypto-sd-luks@.service \
%{_sysconfdir}/systemd/system/crypto-sd-luks-udisks@.service \
%{_sysconfdir}/systemd/system/crypto-sd-plain@.service \
%{_sysconfdir}/systemd/system/crypto-sd-plain-udisks@.service \
%{_sysconfdir}/systemd/system/crypto-sd-symlink@.service
fi
# Replay adapted https://git.merproject.org/olf/udisks2/blob/master/rpm/udisks2-symlink-mount-path
OLD_MOUNT_PATH="/media/sdcard"
if [ ! -L "$OLD_MOUNT_PATH" ]
Expand Down

0 comments on commit a4c1b02

Please sign in to comment.