initial(old rep had backup files)
This commit is contained in:
13
set_params.sh
Executable file
13
set_params.sh
Executable file
@ -0,0 +1,13 @@
|
||||
if [[ $1 == "" ]]; then
|
||||
echo "No template file specified"
|
||||
fi
|
||||
if [[ $2 == "" ]]; then
|
||||
echo "No serial specified"
|
||||
fi
|
||||
if [[ $3 == "" ]]; then
|
||||
echo "No reg number specified"
|
||||
fi
|
||||
|
||||
cat $1 | sed "s/<DEVICE_SERIAL>/$2/" | sed "s/<REGISTRATION_NUMBER>/$3/" > ready_params.json
|
||||
./req.sh set-device-params ready_params.json
|
||||
|
Reference in New Issue
Block a user