Thanks - just incorporated that into my test script and that seems to give me what I am looking for. (I really am only concerned about getting the pet installed and not worried about uninstalling tidily as this method will be used without savefile - it is all running in ram and gets dumped when i shut down)MochiMoppel wrote:BTW. Fiddled a bit more: This should also work. Looks a bit cleaner and removes pet.specs and any puninstall.sh
I did note that the terminal showed a "Child returned status 2" error. Is this perhaps similar to the "wrapper exited with an error" message I see when untarring a pet by adding a .tgz suffix during manual unzipping of a pet?
Code: Select all
#!/bin/bash
#2015Jun9 greengeek script to automatically graft a specific pet into the
#filesystem during boot or shortly thereafter (eg running from /root/Startup)
#Syntax from MochiMoppel (thanks!)
#http://murga-linux.com/puppy/viewtopic.php?p=849832#849832
#Added fixmenus and jwm reload
cd /
tar --strip-components=2 -xf /opt/b3user/FoxitPDF_b3gg-0.1.pet
/pinstall.sh
rm pinstall.sh puninstall.sh pet.specs
fixmenus
sleep 5
jwm -reload
Code: Select all
# ./PetGraft
gzip: stdin: decompression OK, trailing garbage ignored
tar: Child returned status 2
tar: Error is not recoverable: exiting now
./PetGraft: line 4: /pinstall.sh: No such file or directory
rm: cannot remove ‘pinstall.sh’: No such file or directory
rm: cannot remove ‘puninstall.sh’: No such file or directory
Generating /root/.icewm/menu...
Generating /root/.jwmrc...
#
.