-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
install.sh
executable file
·31 lines (31 loc) · 980 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
cd "$(dirname "$BASH_SOURCE")"
chkroot(){
if [ "$(id -u)" != "0" ]; then
echo "E: root access required." >/dev/stderr
exit 1
fi
}
chkroot
mkdir -p /usr/local/JLIVECD
cp -R ./* /usr/local/JLIVECD/
cp -R ./.[^.g]* /usr/local/JLIVECD/
chmod -R 777 /usr/local/JLIVECD
cd /usr/local/JLIVECD
chmod 755 updarp JLstart JLopt preparechroot help funcs.sh install.sh JLRefreshNetwork defconf.sh
ln -sf /usr/local/JLIVECD/JLstart /bin/JLstart
ln -sf /usr/local/JLIVECD/JLstart /usr/bin/jlstart
ln -sf /usr/local/JLIVECD/JLopt /bin/JLopt
ln -sf /usr/local/JLIVECD/JLopt /usr/bin/jlopt
ln -sf /usr/local/JLIVECD/updarp /usr/bin/updarp
echo "[Desktop Entry]
Name=JLIVECD
Type=Application
Exec=sudo JLstart
Terminal=true
Icon=/usr/local/JLIVECD/48.png
Categories=Development;
Comment=Live CD/DVD customization tool (CLI)" > /usr/share/applications/JLIVECD.desktop
echo "*** Install complete!"
echo "*** See the readme file provided with
*** this tool for usage instructions."