forked from cr/mkPirateBox
-
Notifications
You must be signed in to change notification settings - Fork 2
Upgrading PirateBox Package
MaStr edited this page May 15, 2012
·
10 revisions
Like described on installation, connect your router to the Internet (this can be device specific).
Before you update:
- Check if you made changes in /opt/piratebox ( maybe piratebox.conf )
- Write it down, you may need to rechange stuff
- If you used pyForum and want to keep your content, copy over to you usb stick
cp -r /opt/piratebox/forumspace /mnt/usb/
Then:
- Log into your router
- If you have other packages (like forban) installed, Do first:
/etc/init.d/forban stop
- First Stop the running piratebox:
/etc/init.d/piratebox stop
- If you get an umount error, check if droopy is still running and kill it hardly (sometime it hangs because of active sessions)
ps kill -9 <pid of droopy>
- Then rerun (errors that there is no /opt/piratebox/init.d/piratebox_router file are ok)
/etc/init.d/piratebox stop
- If ok
opkg remove piratebox
- If your last update is a long time ago do (Sometimes, python is getting upgraded in trunk-Openwrt, so to OpenWRT.img file is getting too small):
mkdir /mnt/usb mount /dev/sda1 /mnt/usb rm /mnt/usb/PirateBox/OpenWRT.img umount /mnt/usb
- Now Install the new package
cd /tmp wget http://piratebox.aod-rpg.de/piratebox_0.5.1_all.ipk opkg update && opkg install piratebox*
- If you had installed imageboard, rerun:
/opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf imageboard
- If you had saved pyForum, run
/opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf pyForum
- And copy over your Backup again
cp -r /mnt/usb/forumspace /opt/piratebox
- If you have other PirateBox-Packages installed, like forban, you have to run the update-command too
/etc/init.d/forban update