summarylogtreecommitdiffstats
path: root/.install
diff options
context:
space:
mode:
Diffstat (limited to '.install')
-rw-r--r--.install24
1 files changed, 24 insertions, 0 deletions
diff --git a/.install b/.install
new file mode 100644
index 000000000000..829052d10213
--- /dev/null
+++ b/.install
@@ -0,0 +1,24 @@
+
+finish_install() {
+ echo "Backing up youtube.luac..."
+ cd /usr/share/vlc/lua/playlists/
+ if [ -e youtube.luac ]; then
+ mv youtube.luac youtube.luac.bak
+ fi
+}
+
+restore_backup(){
+ echo "Restoring youtube.luac..."
+ cd /usr/share/vlc/lua/playlists/
+ if [ -e youtube.luac.bak ]; then
+ mv youtube.luac.bak youtube.luac
+ fi
+}
+
+post_install() {
+ finish_install
+}
+
+post_remove() {
+ restore_backup
+}