Mini Shell

Direktori : /proc/thread-self/root/proc/thread-self/root/usr/local/bin/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/usr/local/bin/nocache

#!/bin/bash

export LD_PRELOAD="/usr/local/lib/nocache.so $LD_PRELOAD"

while getopts "n:D:f" opt; do
case "$opt" in
    n) export NOCACHE_NR_FADVISE="$OPTARG" ;;
    f) export NOCACHE_FLUSHALL=1 ;;
    D) exec {debugfd}>"$OPTARG"
       export NOCACHE_DEBUGFD="$debugfd"
       ;;
esac
done
shift $((OPTIND-1))

[ ! -z "$debugfd" ] && echo "[nocache] DEBUG: Executing: $@" >&$debugfd
exec "$@"

Zerion Mini Shell 1.0