Files
BloomPatched/resources/packaging/postinst

16 lines
510 B
Plaintext
Raw Normal View History

2021-04-04 21:04:12 +01:00
#!/bin/bash
BLOOM_UDEV_FILE_PATH=/etc/udev/rules.d/
if [ ! -f "${BLOOM_UDEV_FILE_PATH}/99-bloom.rules" ] || [ ! -L "${BLOOM_UDEV_FILE_PATH}/99-bloom.rules" ] || [ ! -e "${BLOOM_UDEV_FILE_PATH}/99-bloom.rules" ]; then
2021-04-04 21:04:12 +01:00
sudo ln -s /opt/bloom/resources/UDevRules/99-bloom.rules "$BLOOM_UDEV_FILE_PATH";
fi
if [ -f "/usr/bin/bloom" ] || [ -L "/usr/bin/bloom" ] || [ -e "/usr/bin/bloom" ]; then
2021-04-04 21:04:12 +01:00
sudo rm /usr/bin/bloom;
fi
sudo chmod u=rwx,g=rwx,o=rx -R /opt/bloom
ln -s /opt/bloom/bin/bloom /usr/bin/bloom;