bash scripts for compatibility with eap6