root / trunk / swipe / install.sh @ 300
History | View | Annotate | Download (303 Bytes)
1 | 296 | rc99 | #!/bin/bash |
---|---|---|---|
2 | |||
3 | # This script installs tooltron |
||
4 | |||
5 | if [[ $EUID -ne 0 ]]; then |
||
6 | echo "You must be root" 2>&1 |
||
7 | exit 1 |
||
8 | else |
||
9 | |||
10 | cp tooltron.daemon /etc/init.d/tooltron |
||
11 | chmod u+x /etc/init.d/tooltron |
||
12 | |||
13 | update-rc.d tooltron defaults |
||
14 | |||
15 | cp runtron.sh /usr/sbin/ |
||
16 | chmod +x /usr/sbin/runtron.sh |
||
17 | fi |