瀏覽代碼

Replace tabs with spaces

Bob Mottram 9 年之前
父節點
當前提交
ceab0f65e1
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1
    1
      src/freedombone
  2. 2
    2
      src/freedombone-client

+ 1
- 1
src/freedombone 查看文件

@@ -1753,7 +1753,7 @@ function configure_avahi {
1753 1753
   # this is a blatant hack, but I couldn't find a better way of mitigating the problem
1754 1754
   # of avahi-daemon stopping after a few minutes
1755 1755
   if ! grep -q "avahi-daemon" /etc/crontab; then
1756
-      echo '* *\t* * *\troot\tsystemctl restart avahi-daemon > /dev/null' >> /etc/crontab
1756
+      echo '* *     * * *   root    systemctl restart avahi-daemon > /dev/null' >> /etc/crontab
1757 1757
   fi
1758 1758
 
1759 1759
   echo 'configure_avahi' >> $COMPLETION_FILE

+ 2
- 2
src/freedombone-client 查看文件

@@ -120,9 +120,9 @@ function mesh_babel {
120 120
   echo '    sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $babel_script
121 121
   echo '    if ! grep -q "avahi-daemon" /etc/crontab; then' >> $babel_script
122 122
   echo '        if [ -f /bin/systemctl ]; then' >> $babel_script
123
-  echo "            echo '* *\t* * *\troot\tsystemctl restart avahi-daemon > /dev/null' >> /etc/crontab" >> $babel_script
123
+  echo "            echo '* *     * * *   root    systemctl restart avahi-daemon > /dev/null' >> /etc/crontab" >> $babel_script
124 124
   echo '        else' >> $babel_script
125
-  echo "            echo '* *\t* * *\troot\tservice avahi-daemon restart > /dev/null' >> /etc/crontab" >> $babel_script
125
+  echo "            echo '* *     * * *   root    service avahi-daemon restart > /dev/null' >> /etc/crontab" >> $babel_script
126 126
   echo '        fi' >> $babel_script
127 127
   echo '    fi' >> $babel_script
128 128
   echo '    if [ -f /bin/systemctl ]; then' >> $babel_script