change user config file path to ~/.config/srslte

master
Andre Puschmann 6 years ago
parent 77ca1d9882
commit f64230a209

@ -9,7 +9,7 @@ then
echo "Please call script with either user or service as first parameter." echo "Please call script with either user or service as first parameter."
echo "" echo ""
echo "E.g. ./srslte_install_configs.sh user" echo "E.g. ./srslte_install_configs.sh user"
echo " .. to install all config files to $HOME/.srs" echo " .. to install all config files to $HOME/.config/srslte"
echo "" echo ""
echo "E.g. ./srslte_install_configs.sh service" echo "E.g. ./srslte_install_configs.sh service"
echo " .. to install all config files to /etc/srslte" echo " .. to install all config files to /etc/srslte"
@ -18,7 +18,7 @@ fi
if [ "$1" == "user" ] if [ "$1" == "user" ]
then then
dest_folder="$HOME/.srs" dest_folder="$HOME/.config/srslte"
elif [ "$1" == "service" ] elif [ "$1" == "service" ]
then then
dest_folder="/etc/srslte" dest_folder="/etc/srslte"
@ -60,7 +60,7 @@ echo "Installing srsLTE configuration files:"
# Make sure the target directory exists # Make sure the target directory exists
if [ ! -d "$dest_folder" ]; then if [ ! -d "$dest_folder" ]; then
echo " - Creating srsLTE config folder $dest_folder" echo " - Creating srsLTE config folder $dest_folder"
mkdir $dest_folder mkdir -p $dest_folder
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit exit
fi fi

Loading…
Cancel
Save