ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: safe usb tsinit script

To: "" <>
Subject: Re: [ts-7000] Re: safe usb tsinit script
From: harry olar <>
Date: Tue, 17 Apr 2012 13:15:46 -0700 (PDT)


Hi ,
the script looks something like this
let me know if you see something.


#!/bin/sh

    umount -l /dev/sda1
    
   
    #mount the sd card so we can have access to commands like pkill, fsck
    echo "mounting sdcard"
    mount -o remount,ro /dev/tssdcarda4 /mnt/root

    if [ -d "/mnt/root/home" ];
    then
              echo "found sdcard"
    else
          echo "USB not found.Please restart the Unit"   
      sleep 10
      exit 1
    fi  
   
    #here i kill my processes
    #kill graphical interface
        echo "kill graphical interfaces"
       
    pkill Xorg
    pkill icewmtray
    pkill icewm-session
    pkill xhost
  
    sleep 5
    ps
   
    if [ -d "/mnt" ];
    then
      mkdir /mnt/usb
     else
         
          sleep 3      
          echo -e " ERROR usb Flash not found "
        
             sleep 10000
         exit 1
         fi
    mount -o ro /dev/sda1 /mnt/usb
     
     #check to see if USB still arround
    if [ -d "/mnt/usb/update" ];
    then
          echo "found usb"
    else
          echo "USB not found.Please restart the Unit"
      
          sleep 10000
          exit 1
    fi 
   
   
    #remount so fsck does not ask questions
    mount -o remount,ro /dev/tssdcarda4 /mnt/root
    fsck -y /dev/tssdcarda4
    mount -o remount,rw /dev/tssdcarda4 /mnt/root
   
   
    if [ -d "/mnt/root/home" ];
    then
              echo "found sdcard"
    else
          echo "usb not found"   
      sleep 10000
      exit 1
    fi  
       
    # copy your stuff
   #do the update


 #finish
   umount /mnt/usb
   umount /mnt/root
   umount /
  #end software upgrade
      
  echo "Software Update done"

   sleep 100
    exit 0







From: PeterElliot <>
To:
Sent: Tuesday, April 17, 2012 2:38 PM
Subject: [ts-7000] Re: safe usb tsinit script

 
Hi Harry,

I'm looking to do the same with a TS-TPC-7390 based system. Can you post your tsinit script, and I'll see if I can locate the issue on my boards.

Regards,

PJE

--- In , "harry" <> wrote:
>
> Hi,
> Anybody can provide a safe way to update some files from sd card using a
> USB flash stick ?
> I created a script and it works 95% percent of the time but when it does not work it corrupts a partition and the unit does not go past the boot screen. I am using a TS 7395 with Touch LCD screen.
> Thanks
> Harry
>





__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU