Changeset 44884 for titan/oealliance
- Timestamp:
- 05/23/20 22:06:15 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/oealliance/var/etc/autostart/start.sh
r44881 r44884 15 15 echo "[$0] starthotplug" 16 16 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; do20 mkdir /tmp/tmpmount21 mount -o guest $ROUND /tmp/tmpmount22 umount -fl /tmp/tmpmount23 rmdir /tmp/tmpmount24 done25 17 } 26 18 … … 191 183 echo 1 > /proc/stb/fp/ledpowercolor 192 184 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/hostname202 sysctl "kernel.hostname=$MODEL-$IP.local.host"203 hostname -F /etc/hostname204 mv -f /etc/samba/private/smbpasswd /etc/samba/private/smbpasswd.org205 /etc/init.d/samba restart206 /etc/init.d/vsftpd restart207 /etc/init.d/dropbear restart208 }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; do215 mkdir /tmp/tmpmount216 mount -o guest $ROUND /tmp/tmpmount217 sleep 3218 ls -al /media/net/219 umount -fl /tmp/tmpmount220 rmdir /tmp/tmpmount221 done222 185 } 223 186 … … 412 375 workarounds 413 376 startled 414 startcifswork &415 starthostname &416 377 startgui;; 417 378 last)
Note: See TracChangeset
for help on using the changeset viewer.