forked from cr/mkPirateBox
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathlibrarybox.sh
More file actions
executable file
·27 lines (24 loc) · 829 Bytes
/
librarybox.sh
File metadata and controls
executable file
·27 lines (24 loc) · 829 Bytes
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
#!/bin/sh
echo "Press return, or enter custom path to /librarybox"
read usrpath
if [ "$usrpath" = "" ]
then
path="/mnt/usb/librarybox"
else
path="$usrpath"
fi
echo "Making your LibraryBox..."
cp $path/droopy /opt/piratebox/bin/;
chmod ug+x /opt/piratebox/bin/droopy
cp $path/hosts /opt/piratebox/conf/;
cp $path/index.html /opt/piratebox/chat/;
cp $path/piratebox-logo-small.png /opt/piratebox/src/;
cp $path/piratebox-logo.png /opt/piratebox/src/;
cp $path/piratebox-logo.png /opt/piratebox/share/;
cp $path/piratebox.conf /opt/piratebox/conf/;
cp $path/READ.ME.htm /opt/piratebox/share/;
cp $path/network /etc/config/;
mv /opt/piratebox/share/READ.ME.htm /opt/piratebox/share/.READ.ME.htm;
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
python /mnt/usb/librarybox/alter_SSID.py
echo "Done! Enjoy your LibraryBox!"