Need an Introduction to Tiny Core? Or peruse Core Concepts.
#!/bin/shPROGRAM="grabber"# Remove symlinks[ -f /usr/local/bin/"$PROGRAM" ] && sudo unlink /usr/local/bin/"$PROGRAM"[ -f /usr/local/share/pixmaps/"$PROGRAM".png ] && sudo unlink /usr/local/share/pixmaps/"$PROGRAM".png[ -f /usr/local/share/applications/"$PROGRAM".desktop ] && sudo unlink /usr/local/share/applications/"$PROGRAM".desktop[ -f /usr/local/etc/"$PROGRAM".conf ] && sudo unlink /usr/local/etc/"$PROGRAM".conf[ -f /usr/local/tce.installed/"$PROGRAM" ] && sudo unlink /usr/local/tce.installed/"$PROGRAM"[ -f /usr/local/share/doc/License/"$PROGRAM"-License.txt ] && sudo unlink /usr/local/share/doc/License/"$PROGRAM"-License.txt# Unmount extension[ -e /tmp/tcloop/"$PROGRAM" ] && sudo umount /tmp/tcloop/"$PROGRAM"# Remove extension[ -e /tmp/tcloop/"$PROGRAM" ] && sudo rm -r /tmp/tcloop/"$PROGRAM"# Remove wbar entriessudo busybox sed -i '/\/usr\/local\/share\/pixmaps\/'"$PROGRAM"'.png/d' /usr/local/tce.iconssudo busybox sed -i '/SelectiveScreenshot/d' /usr/local/tce.iconssudo busybox sed -i '/\/usr\/local\/bin\/'"$PROGRAM"'/d' /usr/local/tce.icons
Hi Paul_123It's the section titled # Remove symlinks
I meant what is the function "unlink". It is not a command built into piCore
tc@box:~$ unlink --helpUsage: unlink FILE or: unlink OPTIONCall the unlink function to remove the specified FILE. --help display this help and exit --version output version information and exitGNU coreutils online help: <http://www.gnu.org/software/coreutils/>Report unlink translation bugs to <http://translationproject.org/team/>Full documentation at: <http://www.gnu.org/software/coreutils/unlink>or available locally via: info '(coreutils) unlink invocation'