瀏覽代碼

Use single quotes for maximum compatibility #1

Bob Mottram 11 年之前
父節點
當前提交
00ada42522
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      beaglebone.txt

+ 2
- 2
beaglebone.txt 查看文件

441
 chmod +x /tmp/firewall.sh
441
 chmod +x /tmp/firewall.sh
442
 . /tmp/firewall.sh
442
 . /tmp/firewall.sh
443
 iptables-save > /etc/firewall.conf
443
 iptables-save > /etc/firewall.conf
444
-echo "#!/bin/sh" > /etc/network/if-up.d/iptables
445
-echo "iptables-restore < /etc/firewall.conf" >> /etc/network/if-up.d/iptables
444
+echo '#!/bin/sh' > /etc/network/if-up.d/iptables
445
+echo 'iptables-restore < /etc/firewall.conf' >> /etc/network/if-up.d/iptables
446
 chmod +x /etc/network/if-up.d/iptables
446
 chmod +x /etc/network/if-up.d/iptables
447
 rm /tmp/firewall.sh
447
 rm /tmp/firewall.sh
448
 #+END_SRC
448
 #+END_SRC