Source

rfswitch / modprobe

Full commit
# -*- modprobe -*-
# $sysconfdir/modprobe.d/rfswitch

install radio-off \
    [ -e /proc/pbe5 ] && echo 0 >/proc/pbe5/radio; \
    [ -e /proc/av5100 ] && echo 0 >/proc/av5100/radio

install radio-on \
    modprobe radio; \
    [ -e /proc/pbe5 ] && echo 1 >/proc/pbe5/radio; \
    [ -e /proc/av5100 ] && echo 1 >/proc/av5100/radio

install radio \
    modprobe pbe5 >/dev/null 2>&1;\
    modprobe av5100 >/dev/null 2>&1