aboutsummaryrefslogtreecommitdiff
path: root/checkinst.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xcheckinst.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/checkinst.sh b/checkinst.sh
new file mode 100755
index 0000000..957267c
--- /dev/null
+++ b/checkinst.sh
@@ -0,0 +1,10 @@
1#!/bin/bash
2
3CMD="ln -svf $PWD/libbu++.so /usr/lib; ln -svf $PWD/bu /usr/include"
4
5if [ $UID == 0 ]; then
6 bash -c "$CMD"
7else
8 echo This script needs root access...
9 su root -c "$CMD"
10fi