add dfunc.sh script

Signed-off-by: WEN Pingbo <wpb@meizu.com>