+
+ SDB_OPTIONS=""
+ if [ -n "$DEVICE_ID" ]; then
+ SDB_OPTIONS="-s $DEVICE_ID"
+ fi
+
+ sdb $SDB_OPTIONS root on
+ sdb $SDB_OPTIONS shell mount -o remount,rw /
+ sdb $SDB_OPTIONS push $RUNTIME_ASSEMBLIES $TARGET_ASSEMBLY_PATH
+
+ nifile_cnt=$(sdb $SDB_OPTIONS shell find $TARGET_ASSEMBLY_PATH -name '*.ni.dll' | wc -l)
+ if [ $nifile_cnt -gt 0 ]; then
+ sdb $SDB_OPTIONS shell "rm -f $TARGET_ASSEMBLY_PATH/*.ni.dll"
+ sdb $SDB_OPTIONS shell nitool --system
+ sdb $SDB_OPTIONS shell nitool --regen-all-app