diff options
Diffstat (limited to 'lifx-firmware-update.install')
-rw-r--r-- | lifx-firmware-update.install | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lifx-firmware-update.install b/lifx-firmware-update.install new file mode 100644 index 000000000000..b9cc2e6707a6 --- /dev/null +++ b/lifx-firmware-update.install @@ -0,0 +1,37 @@ +#!/usr/bin/bash +# NOTE: shebang added for convenience of packager + +# What is the required syntax? full declarative? e.g.: function foo() { .. } +# OR short syntax? e.g.: foo() { .. } +# I will default to full. + +function post_install() { + + __update_desktop_entries + + echo -e "\n" \ + "NOTE: you do not need a wireless adaptor in your computer to upgrade LIFX\n" \ + " bulbs.\n\n" \ + "You only need to be on the same LAN network as the bulbs are,\n" \ + "wired or wireless." + +} + +function post_remove() { + + __update_desktop_entries + +} + +function post_upgrade() { + + post_install +} + +__update_desktop_entries() { + + XDG_UTILS_DEBUG_LEVEL=0 xdg-icon-resource forceupdate --theme hicolor + + update-desktop-database -q + +}
\ No newline at end of file |