Permalink
Browse files

Made installing/uninstalling chat box easier

scripted chat box preference file, made scripts for install and
uninstall.
  • Loading branch information...
1 parent cfa0026 commit 34fb7c6bf618187fa4bea5ba6d5be85eb0a173a0 @griffey committed Aug 31, 2012
Showing with 31 additions and 26 deletions.
  1. +15 −0 LibraryBox 1.5/chat.sh
  2. +0 −26 LibraryBox 1.5/libraryboxnochat.sh
  3. +16 −0 LibraryBox 1.5/nochat.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+echo "To install Chatbox, press enter"
+read usrpath
+
+if [ "$usrpath" = "" ]
+then
+ path="/mnt/usb/librarybox"
+else
+ path="$usrpath"
+fi
+echo "Installing Chatbox"
+
+cp $path/piratebox.conf /opt/piratebox/conf/;
+
+echo "Done! Enjoy your LibraryBox!"
@@ -1,26 +0,0 @@
-#!/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 "Copying from $path"
-echo "Making your LibraryBox..."
-
-cp $path/droopy /opt/piratebox/bin/;
-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.nochat.conf /opt/piratebox/conf/;
-mv /opt/piratebox/conf/piratebox.nochat.conf /opt/piratebox/conf/piratebox.conf
-cp $path/wireless /etc/config/wireless/;
-
-cp $path/READ.ME.htm /opt/piratebox/src/;
-mv /opt/piratebox/src/READ.ME.htm /opt/piratebox/src/.READ.ME.htm;
-
-echo "Done! Enjoy your LibraryBox!"
@@ -0,0 +1,16 @@
+#!/bin/sh
+echo "To remove Chatbox, press enter"
+read usrpath
+
+if [ "$usrpath" = "" ]
+then
+ path="/mnt/usb/librarybox"
+else
+ path="$usrpath"
+fi
+echo "Removing Chatbox"
+
+cp $path/piratebox.nochat.conf /opt/piratebox/conf/;
+mv /opt/piratebox/conf/piratebox.nochat.conf /opt/piratebox/conf/piratebox.conf
+
+echo "Done! Enjoy your LibraryBox!"

0 comments on commit 34fb7c6

Please sign in to comment.