Running dachstein RC2 floppy version:
I'm try to add an uninstall option into
lrpkg.
I've added this code to
/lib/POSIXness/POSIXness.linuxrouter in the lrpkg() function.
#########
uninstall () { f="$1" FN_LIST="$(cat $lrpkgpath/$f.list)" for FN in $FN_LIST; do
rm
/$FN
done } ######### this in the case function,
#########
-u ) uninstall "$2" "$3" ;; ######### and this in the usage function:
#########
eecho " -u: uninstall Uninstall package. (explude .lrp)" ######### Is this messy/incorrect/etc? I have very
little exp. coding shell scripts,
that's why i'm asking, although it seems to work
ok.
Also, what can I add to this to update the
/var/lib/lrpkg/packages file
to remove the named package from the
list?
|
- Re: [Leaf-user] uninstall option for lrpkg Mike Branco
- Re: [Leaf-user] uninstall option for lrpkg Matt Schalit
- Re: [Leaf-user] uninstall option for lrpkg David Douthitt
- Re: [Leaf-user] uninstall option for lrpkg David Douthitt
- Re: [Leaf-user] uninstall option for lrpkg Mike Branco
- Re: [Leaf-user] uninstall option for lrpkg Jeff Newmiller
- Re: [Leaf-user] uninstall option for lrpkg David Douthitt