![Advanced Card Systems ACR350 Скачать руководство пользователя страница 60](http://html1.mh-extra.com/html/advanced-card-systems/acr350/acr350_user-manual_2855860060.webp)
ACR350 Validator with QR Code Scanner
–
User Manual
Version 1.02
www.acs.com.hk
Page 60 of 61
3.3.2.2.
Copy Application Automatically at Power Up with Startup Script
This method provides a way to copy application to multiple device using media like USB thumb drive
or SD card.
a.
Create a "startup.x" script file. It should contain the following:
root
Note:
<app_folder>
is the application folder, e.g.
app
where the application files are stored
b.
Put the "startup.x" and the application in the media (such as USB thumb drive or SD card)
c.
Insert the media into ACR350. Power ON ACR350.
d.
The new application will run after successful installation.
e.
Turn OFF the device and remove the media. Power ON to launch the new application by
default.
3.3.3.
Remove Installed Application
To remove the startup.x and the application:
a. Enter console mode (Refer to
b. Login to ACR350 console mode.
c. Perform following commands
Note:
<app_folder>
is the application folder where the application files are stored
#!/bin/bash
displayMessage()
{
echo $1
echo $1 > /dev/console
}
echo 1 > /sys/class/vtconsole/vtcon1/bind
displayMessage "Installing the Application"
cp -rf .
/
<app_folder>
/data
mv /data/
<app_folder>
/startup.x /data
displayMessage "Installation Complete"
echo 0 > /sys/class/vtconsole/vtcon1/bind
sync
/data/startup.x &
cd /data
rm startup.x
rm
–
rf /data/
<app_folder>
reboot