Change to check if exists to if exists and is empty (file appears empty in default build)
This commit is contained in:
parent
20861c1a02
commit
1f5fd0c2bb
|
|
@ -74,10 +74,10 @@ echo "Setting node number in usbradio.conf..."
|
||||||
sed -i "s/1999/$NODE/" usbradio.conf
|
sed -i "s/1999/$NODE/" usbradio.conf
|
||||||
|
|
||||||
echo "Renaming simpleusb_tune_usb_1999.conf..."
|
echo "Renaming simpleusb_tune_usb_1999.conf..."
|
||||||
[ -f simpleusb_tune_usb_1999.conf ] && mv simpleusb_tune_usb_1999.conf simpleusb_tune_usb_$NODE.conf
|
[ -s simpleusb_tune_usb_1999.conf ] && mv simpleusb_tune_usb_1999.conf simpleusb_tune_usb_$NODE.conf
|
||||||
|
|
||||||
echo "Renaming usbradio_tune_usb_1999.conf..."
|
echo "Renaming usbradio_tune_usb_1999.conf..."
|
||||||
[ -f usbradio_tune_usb_1999.conf ] && mv usbradio_tune_usb_1999.conf usbradio_tune_usb_$NODE.conf
|
[ -s usbradio_tune_usb_1999.conf ] && mv usbradio_tune_usb_1999.conf usbradio_tune_usb_$NODE.conf
|
||||||
|
|
||||||
echo "Reloading asterisk configuration..."
|
echo "Reloading asterisk configuration..."
|
||||||
service asterisk restart
|
service asterisk restart
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue