Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Sep 2014, 18:20
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Quick pet2sfs
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Thu 10 Feb 2011, 20:57    Post subject:  Quick pet2sfs  

This seems to work:
Code:

#!/bin/sh

NAME="$(echo ${1} | sed 's/\.pet//')"     
[ -d /tmp/work ] || mkdir /tmp/work
pet2tgz "$1"

tar -xzf ${NAME}.tar.gz -C  /tmp/work

rm /tmp/work/${NAME}/pet.specs 2>/dev/null
mksquashfs /tmp/work/${NAME} ${NAME}.sfs


##cleanup
rm -r /tmp/work
rm ${NAME}.tar.gz


MU also has one that works with sfs combiner
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11068
Location: Arizona USA

PostPosted: Thu 10 Feb 2011, 23:09    Post subject:  

Should this be somewhere else in the forum? What does it do? What is it for?
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Thu 10 Feb 2011, 23:15    Post subject:  

Flash wrote:
Should this be somewhere else in the forum? What does it do? What is it for?


hint pet2sfs Smile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0478s ][ Queries: 11 (0.0130s) ][ GZIP on ]