Skip to content

Instantly share code, notes, and snippets.

@aseering
Last active August 10, 2016 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aseering/87cbb5e8fd8cbaef2eef2a39f64b3528 to your computer and use it in GitHub Desktop.
Save aseering/87cbb5e8fd8cbaef2eef2a39f64b3528 to your computer and use it in GitHub Desktop.
'ionice' stub
#!/bin/dash
##########
#
# 'ionice' wrapper script
#
# Use this stub if you're running in an environment where 'ionice' is
# not supported and not strictly required, but it's
# used as a convenience by some script that you need to run.
#
# To use:
# - Download this script. Save as "ionice" (no file extension). Run 'chmod +x ionice' on it.
# - Place the script into $HOME/bin , creating it if it doesn't exist.
# - Run 'export PATH="$HOME/bin:$PATH"'. You may want to add that to your dotfiles so that all new terminals inherit it.
#
##########
while getopts ":c:n:p:t" OPT; do
echo "'ionice' process stubbed out; -$OPT $OPTARG argument ignored"
done
shift $(($OPTIND-1))
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment