IGD3000系列(一体屏)网关的app和文件系统的打包目录
朱浩东
2025-06-14 58d2e329d04aaf39b0ed00308de62bff47fa8ce8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
RUN="/mnt/udisk/upgrade/run.sh"
 
dev_name=`echo $1 | cut -c1-3`
#flag_file="/sys/block/$dev_name/removable"
#echo "flag file = $flag_file" >> /tmp/log
 
#exit
 
#1.get the removable flag; 0---hdd; 1---udisk
 
#echo "args: $#, 1: $1, 2: $2, 3: $3, $4" > /tmp/log
#2.detect the usb dev is udisk or hdd
 
/bin/mount -t vfat /dev/$1 /mnt/udisk
#touch /tmp/.usb.tmp
echo $dev_name > /tmp/.usb.tmp
 
if [ -f $RUN ]
then
     /bin/sh   $RUN &
fi
 
sync