~ctf/checkbox/bug811177

1
2
3
4
5
6
7
8
9
10
#!/bin/sh

config_file="/etc/hwtest.d/$1.ini"

if [ "$1" = "hwtest" ]; then
    temp_file=`tempfile -m 0644 -p $1`

    awk '{ print }; /transport_url/ { print "timeout = 120" }' <$config_file >$temp_file
    mv -f $temp_file $config_file
fi