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 Fri 31 Oct 2014, 08:57
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 Posts_count  
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: 11128
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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