full rewrite

changes pulled from  AOSPA-legacy/android_vendor_pa / prebuilt / etc / init.pa.rc