Skip to content

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:

  1. Check if you made changes in /opt/piratebox ( maybe piratebox.conf )
  2. Write it down, you may need to rechange stuff
  3. If you used pyForum and want to keep your content, copy over to you usb stick
  cp -r /opt/piratebox/forumspace /mnt/usb/

Then:

  1. Log into your router
  2. If you have other packages (like forban) installed, Do first:
  /etc/init.d/forban stop
  1. First Stop the running piratebox:
  /etc/init.d/piratebox stop
  1. 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>
  1. Then rerun (errors that there is no /opt/piratebox/init.d/piratebox_router file are ok)
  /etc/init.d/piratebox stop
  1. If ok
  opkg remove piratebox
  1. 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
  1. Now Install the new package
  cd /tmp
  wget http://piratebox.aod-rpg.de/piratebox_0.5.1_all.ipk
  opkg update && opkg install piratebox*
  1. If you had installed imageboard, rerun:
  /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf imageboard 
  1. If you had saved pyForum, run
  /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf pyForum
  1. And copy over your Backup again
  cp -r  /mnt/usb/forumspace /opt/piratebox
  1. If you have other PirateBox-Packages installed, like forban, you have to run the update-command too
   /etc/init.d/forban update