aboutsummaryrefslogtreecommitdiffstats
path: root/extras/create_link.sh
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@mageia.org>2013-01-03 23:59:54 +0000
committerAngelo Naselli <anaselli@mageia.org>2013-01-03 23:59:54 +0000
commit3b984aed39e86b00bf7bd7c2e6ed9d6911f5e97b (patch)
tree761880a99b09fedb935764ee37de300d56b562d9 /extras/create_link.sh
parent212e08b5a35383486d80e09c8a3823d8b04d8424 (diff)
downloadcolin-keep-3b984aed39e86b00bf7bd7c2e6ed9d6911f5e97b.tar
colin-keep-3b984aed39e86b00bf7bd7c2e6ed9d6911f5e97b.tar.gz
colin-keep-3b984aed39e86b00bf7bd7c2e6ed9d6911f5e97b.tar.bz2
colin-keep-3b984aed39e86b00bf7bd7c2e6ed9d6911f5e97b.tar.xz
colin-keep-3b984aed39e86b00bf7bd7c2e6ed9d6911f5e97b.zip
Added a silly script to setup developer environment
Diffstat (limited to 'extras/create_link.sh')
-rwxr-xr-xextras/create_link.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/extras/create_link.sh b/extras/create_link.sh
new file mode 100755
index 0000000..1f1dab2
--- /dev/null
+++ b/extras/create_link.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+apanel=`rpm --eval %perl_privlib`/AdminPanel
+
+if [ -L $apanel ]
+then
+ rm $apanel
+fi
+
+if [ -f /usr/share/polkit-1/actions/org.mageia.policykit.pkexec.adminpanel.policy ]
+then
+ rm /usr/share/polkit-1/actions/org.mageia.policykit.pkexec.adminpanel.policy
+fi
+
+pushd .
+cd ..
+cp extras/org.mageia.policykit.pkexec.adminpanel.policy /usr/share/polkit-1/actions/
+ln -s $PWD/AdminPanel `rpm --eval %perl_privlib`
+popd
+