Home
last modified time | relevance | path

Searched refs:proc_ctrl (Results 1 – 1 of 1) sorted by relevance

/linux/samples/pktgen/
H A Dfunctions.sh66 local proc_ctrl=${PROC_DIR}/$proc_file
67 if [[ ! -e "$proc_ctrl" ]]; then
68 err 3 "proc file:$proc_ctrl does not exists (dev added to thread?)"
70 if [[ ! -w "$proc_ctrl" ]]; then
71 err 4 "proc file:$proc_ctrl not writable, not root?!"
76 echo "cmd: $@ > $proc_ctrl"
79 echo "$@" > "$proc_ctrl" || status=$?
82 result=$(grep "Result: OK:" $proc_ctrl) || true
84 grep "Result:" $proc_ctrl >&2
88 err 5 "Write error($status) occurred cmd: \"$@ > $proc_ctrl\""