[SOLVED] PPv4: How to get revert to stock to work

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: [SOLVED] PPv4: How to get revert to stock to work

Postby winestock » Sat Feb 23, 2013 2:53 pm

For anyone that might be interested. I created a small script to perform the revert.

revert.sh:
$this->bbcode_second_pass_code('', '
#!/bin/sh

fw_set_env()
{
command="blparam $*"

echo ${command}
sudo ${command} >/dev/null
}

sudo pacman -Q | grep blparam >/dev/null

if [ $? -eq 0 ]
then
fw_set_env mainlineLinux no
fw_set_env arcNumber
fw_set_env bootcmd run boot_nand

echo
echo "Powering down..."
echo "Remove HD and apply power to Pogoplug"
echo

sudo sync
sudo poweroff

else
echo
echo "pogoplug-blparam is not install!"
echo
fi')

To use this you first need to install the pogoplug-blparam package.
Last edited by winestock on Mon Feb 25, 2013 12:37 pm, edited 3 times in total.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: [SOLVED] PPv4: How to get revert to stock to work

Postby bodhi » Sat Feb 23, 2013 10:03 pm

Nice script! I like this better than the USB drive revert procedure.
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

Re: [SOLVED] PPv4: How to get revert to stock to work

Postby pepedog » Sat Feb 23, 2013 10:24 pm

I highly recommend doing sudo sync before sudo poweroff
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [SOLVED] PPv4: How to get revert to stock to work

Postby winestock » Sat Feb 23, 2013 10:25 pm

$this->bbcode_second_pass_quote('pepedog', 'I') highly recommend doing sudo sync before sudo poweroff


Thanks. I will make sure to add that. I fixed the posted revert.sh script above.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Previous

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 118 guests