Skip to content

Commit

Permalink
regular refresh of scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gray Girling authored and Gray Girling committed Jul 25, 2012
1 parent 3d08213 commit bed344f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
Binary file modified pkg/rpi_ref-root-nodata.tgz
Binary file not shown.
Binary file modified pkg/scripts-bin.tgz
Binary file not shown.
19 changes: 11 additions & 8 deletions sysidk
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ help()
echo "syntax: <command> --help"
echo " Help about command"
echo
echo "syntax: --setup [-n] [-b <install_dir>] [-p <pkg_dir>] <scripts package> "
echo "syntax: --setup [-l] [-b <install_dir>] [-p <pkg_dir>] <scripts package> "
echo " Place sysidk scripts in the installation directory"
echo " -l Use local directories - no need to setup with root access"
echo " -b Set binary directory for scripts"
Expand All @@ -45,7 +45,7 @@ help()
echo " Install sysidk packages"
echo " (Use 'sysidk sysipk -h' for other package management options)"
echo
echo "syntax: --install [-b <install_dir>] [-p <pkg_dir>] <scripts package> "
echo "syntax: --install [-l] [-b <install_dir>] [-p <pkg_dir>] <scripts package> "
echo " Setup (as --setup below) and install sysidk commands into your"
echo " shell sessions (on next logon)"
echo "syntax: --uninstall"
Expand Down Expand Up @@ -152,29 +152,32 @@ sysidk_help_commands()

sysidk_add()
{ local rc=0
local pk
local type
local opts=

if ! PATH="$dir_bcm_scripts:$PATH" type sysipk>/dev/null 2>/dev/null; then
echo "$cmd_name: your installed scripts don't include the 'sysipk' command">&2
echo "$cmd_name: add the scripts package first?">&2
rc=1
else
local opts=
local pk
local type
for pk in "$@"; do
case "$pk" in
-* | --*) opts="$opts $pk";;
*-root-nodata.tgz | *-data-root.tgz | *-root.tgz) type=root;;
*-boot.tgz) type=boot;;
*-trk.tgz) type=track;;
*-bin.tgz) type=scripts;;
*) type=unknown;;
esac
if [ -z "$type" ]; then
if [ "$type" = "unknown" ]; then
echo "$cmd_name: sorry - don't recognize the package type of '$pk'"
rc=1
elif [ ! -z "$type" ]; then
# echo "sysipk $type $opts --install $pk">&2
PATH="$dir_bcm_scripts:$PATH" sysipk $type $opts --install "$pk"
rc=$?
fi
PATH="$dir_bcm_scripts:$PATH" sysipk $type $opts --install "$@"
rc=$?
done
fi
return $rc
Expand Down

0 comments on commit bed344f

Please sign in to comment.