Commit 5a59dde0 authored by Félix Sipma's avatar Félix Sipma
Browse files

échappement des backslashs dans la commande DNSMASQ

parent 807e13f9
......@@ -17,18 +17,18 @@ BLUE='\033[0;34m'
RED='\033[0;31m'
NC='\033[0m'
SSH_OPT=" -StrictHostKeyChecking=no"
DNSMASQ="sudo /usr/sbin/dnsmasq --user=" + USER + " \
--no-daemon \
--listen-address 192.168.1.10 \
--bind-interfaces \
-p0 \
--dhcp-authoritative \
--dhcp-range=192.168.1.100,192.168.1.200 \
--bootp-dynamic \
--dhcp-boot=" + OPENWRT_INITRAMFS_IMAGE + " \
--log-dhcp \
--enable-tftp \
--tftp-root=$(pwd)"
DNSMASQ="sudo /usr/sbin/dnsmasq --user=" + USER + " \\\
--no-daemon \\\
--listen-address 192.168.1.10 \\\
--bind-interfaces \\\
-p0 \\\
--dhcp-authoritative \\\
--dhcp-range=192.168.1.100,192.168.1.200 \\\
--bootp-dynamic \\\
--dhcp-boot=" + OPENWRT_INITRAMFS_IMAGE + " \\\
--log-dhcp \\\
--enable-tftp \\\
--tftp-root=\"$(pwd)\""
print(BLUE + "Script de flash d'OpenWrt sur Mikrotik RB952ui-5ac2nD" + NC)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment