-
Notifications
You must be signed in to change notification settings - Fork 15
/
modnow.sh
executable file
·28 lines (20 loc) · 982 Bytes
/
modnow.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh
# add all files from this directory to the 'wrapper' filesystem of target version
export ADD_TO_WRAPPER="atw_\$TARGET_KERNEL_VERSION"
# debug shell code, creates /var/tmp/modfs_debug_shell.log
export MODFS_DEBUG_SHELL=1
# preset the working directory, skips selection from console
export MODFS_WORKING_DIR=/var/media/ftp/system
# skip pause in front of "mksquashfs"
export MODFS_NO_PAUSE_ON_PACK=${PACK:-0}
# abort and keep the modified directory structure
export MODFS_ABORT_BEFORE_PACK=${NOPACK:-0}
# directory name and (optional) size limit for volatile NAS storage
#export MOD_VOLATILE_NAS_DIR_DIRNAME="nostore"
#export MOD_VOLATILE_NAS_DIR_LIMIT="32M"
# call "modfs" in update mode with the specified input image and (optional) output file name
./modfs update $1 $2
# save debug output to local file(s)
d=$(date +%s)
[ -f /var/tmp/modfs_debug_shell.log ] && cp -a /var/tmp/modfs_debug_shell.log ./modfs_debug_shell.log.$d
showshringbuf modfs >./modfs.log.$d