1
0

aoe-interfaces.in 238 B

1234567891011121314
  1. #! /bin/sh
  2. # aoe-interfaces
  3. listf=/sys/module/aoe/parameters/aoe_iflist
  4. if test -z "$*"; then
  5. test -r $listf && cat $listf
  6. else
  7. if test -w $listf; then
  8. printf '%s' "$*" > $listf
  9. else
  10. printf '%s' "$*" > @devdir@/interfaces
  11. fi
  12. fi