diff --git a/kylin/hgtool/DEBIAN/postinst b/kylin/hgtool/DEBIAN/postinst index a0d8641..fd32d00 100755 --- a/kylin/hgtool/DEBIAN/postinst +++ b/kylin/hgtool/DEBIAN/postinst @@ -4,4 +4,7 @@ udevadm control --reload-rules udevadm trigger ldconfig -/opt/apps/scanner-driver-huagaoscantool/bin/HGScanTool & +name=$(logname) +echo $name + +su "$name" -c /opt/apps/scanner-driver-huagaoscantool/bin/HGScanTool & diff --git a/uos/hgtool/DEBIAN/postinst b/uos/hgtool/DEBIAN/postinst index 49b6882..9a6ad94 100755 --- a/uos/hgtool/DEBIAN/postinst +++ b/uos/hgtool/DEBIAN/postinst @@ -4,4 +4,7 @@ udevadm control --reload-rules udevadm trigger ldconfig -/opt/apps/com.huagaochina.huagaoscantool/files/bin/HGScanTool & \ No newline at end of file +name=$(logname) +echo $name + +su "$name" -c /opt/apps/com.huagaochina.huagaoscantool/files/bin/HGScanTool & \ No newline at end of file