Ignore:
Timestamp:
05/23/20 22:06:15 (3 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/oealliance/var/etc/autostart/start.sh

    r44881 r44884  
    1515        echo "[$0] starthotplug"
    1616        hotplug.sh first
    17 
    18     CIFSGUESTLIST=$(cat /mnt/network/auto.misc | grep cifs | grep guest | sed -nr 's!.*\t:([^:]+).*!\1!p')
    19     for ROUND in $CIFSGUESTLIST; do
    20         mkdir /tmp/tmpmount
    21         mount -o guest $ROUND /tmp/tmpmount
    22         umount -fl /tmp/tmpmount
    23         rmdir /tmp/tmpmount
    24     done
    2517}
    2618
     
    191183                echo 1 > /proc/stb/fp/ledpowercolor
    192184        fi
    193 }
    194 
    195 starthostname()
    196 {
    197 #    IP=$(ifconfig | grep inet | grep Bcast | awk '{print $2}' | cut -d":" -f2 | tr '.' '-')
    198     IP=$(ifconfig | grep inet | grep Bcast | awk '{print $2}' | cut -d":" -f2 | cut -d"." -f4)
    199     MODEL=$(cat /etc/model)
    200 #    hostname "$MODEL ($IP)"
    201     echo "$MODEL-$IP" > /etc/hostname
    202     sysctl "kernel.hostname=$MODEL-$IP.local.host"
    203     hostname -F /etc/hostname
    204     mv -f /etc/samba/private/smbpasswd /etc/samba/private/smbpasswd.org
    205     /etc/init.d/samba restart
    206     /etc/init.d/vsftpd restart
    207     /etc/init.d/dropbear restart
    208 }
    209 
    210 startcifswork()
    211 {
    212         echo "[$0] startcifswork"
    213     CIFSGUESTLIST=$(cat /mnt/network/auto.misc | grep cifs | grep guest | sed -nr 's!.*\t:([^:]+).*!\1!p')
    214     for ROUND in $CIFSGUESTLIST; do
    215         mkdir /tmp/tmpmount
    216         mount -o guest $ROUND /tmp/tmpmount
    217         sleep 3
    218         ls -al /media/net/
    219         umount -fl /tmp/tmpmount
    220         rmdir /tmp/tmpmount
    221     done
    222185}
    223186
     
    412375                workarounds
    413376                startled
    414         startcifswork &
    415                 starthostname &
    416377                startgui;;
    417378        last)
Note: See TracChangeset for help on using the changeset viewer.