Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fw32.git;a=commitdiff;h=78074d1b92151f3c3673564ee354e5be393a5f42

commit 78074d1b92151f3c3673564ee354e5be393a5f42
Author: James Buren <r...@frugalware.org>
Date:   Mon Oct 24 06:28:42 2011 -0500

fw32
* add some more commands

diff --git a/fw32 b/fw32
index ff60bd5..1bf04ea 100755
--- a/fw32
+++ b/fw32
@@ -76,8 +76,9 @@ create()
mkdir $i
done
mount /var/cache/pacman-g2/pkg
-       pacman_g2 -Sy shadow coreutils findutils which wget file tar gzip bzip2 
util-linux procps kbd psmisc less
+       pacman_g2 -Sy shadow coreutils findutils which wget file tar gzip bzip2 
util-linux procps kbd psmisc less pacman-g2
umount /var/cache/pacman-g2/pkg
+       mount_all
}

update()
@@ -87,7 +88,7 @@ update()
pacman_g2 -Syuf
umount /var/cache/pacman-g2/pkg
mount_all
-       run fc-cache --force --system-only
+       [ -x "$FW32_ROOT/usr/bin/fc-cache" ] && run /usr/bin/fc-cache --force 
--system-only
}

delete()
@@ -97,4 +98,28 @@ delete()
[ $? -ne 0 ] && error "Failed to delete $FW32_ROOT."
}

+clean()
+{
+       mount_all
+       pacman_g2 -Sc
+}
+
+install()
+{
+       umount_all
+       mount /var/cache/pacman-g2/pkg
+       pacman_g2 -Syf $@
+       umount /var/cache/pacman-g2/pkg
+       mount_all
+}
+
+uninstall()
+{
+       umount_all
+       mount /var/cache/pacman-g2/pkg
+       pacman_g2 -Rs $@
+       umount /var/cache/pacman-g2/pkg
+       mount_all
+}
+
[ $UID -ne 0 ] && [ $EUID -ne 0 ] && error "You must run this command as root."
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to