#!/bin/sh # Runs bpf test using test_bpf kernel module if /sbin/modprobe -q test_bpf { /sbin/modprobe -q -r test_bpf; echo "test_bpf: ok"; } else { echo "test_bpf: [FAIL]"; exit 1; } (CommandList children: [ (If arms: [ (if_arm cond: [(Sentence child:(C {(/sbin/modprobe)} {(-q)} {(test_bpf)}) terminator:)] action: [ (Sentence child: (C {(/sbin/modprobe)} {(-q)} {(-r)} {(test_bpf)}) terminator: ) (Sentence child:(C {(echo)} {(DQ ("test_bpf: ok"))}) terminator:) ] spids: [-1 17] ) ] else_action: [ (Sentence child:(C {(echo)} {(DQ ("test_bpf: [FAIL]"))}) terminator:) (Sentence child:(C {(exit)} {(1)}) terminator:) ] spids: [37 53] ) ] )