add eps rewrite script

Signed-off-by: xiehuc <xiehuc@gmail.com>