瀏覽代碼

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
   # this is a blatant hack, but I couldn't find a better way of mitigating the problem
1753
   # this is a blatant hack, but I couldn't find a better way of mitigating the problem
1754
   # of avahi-daemon stopping after a few minutes
1754
   # of avahi-daemon stopping after a few minutes
1755
   if ! grep -q "avahi-daemon" /etc/crontab; then
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
   fi
1757
   fi
1758
 
1758
 
1759
   echo 'configure_avahi' >> $COMPLETION_FILE
1759
   echo 'configure_avahi' >> $COMPLETION_FILE

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

120
   echo '    sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $babel_script
120
   echo '    sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $babel_script
121
   echo '    if ! grep -q "avahi-daemon" /etc/crontab; then' >> $babel_script
121
   echo '    if ! grep -q "avahi-daemon" /etc/crontab; then' >> $babel_script
122
   echo '        if [ -f /bin/systemctl ]; then' >> $babel_script
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
   echo '        else' >> $babel_script
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
   echo '        fi' >> $babel_script
126
   echo '        fi' >> $babel_script
127
   echo '    fi' >> $babel_script
127
   echo '    fi' >> $babel_script
128
   echo '    if [ -f /bin/systemctl ]; then' >> $babel_script
128
   echo '    if [ -f /bin/systemctl ]; then' >> $babel_script