You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to apc-pico-...@googlegroups.com
#!/bin/sh
usbaddboot() { while true; do echo -n "Which USB port do you want to use ? ( 1 / 2 / 3 ) : " read usbpn case $usbpn in 1) wmtserver set wmt.usb.param "11:1" echo "Port 1 set" break;; 2) wmtserver set wmt.usb.param "11:2" echo "Port 2 set" break;; 3) wmtserver set wmt.usb.param "11:3" echo "Port 3 set" break;; *) echo "Input not recognized, use 1 - 2 or 3";; esac done wmtserver set bootusb "usb start; usb start; fatload usb 0:1 0 scriptcmd; if iminfo 0; then autoscr 0; fi" }
tftpaddboot() { wmtserver set boottftp "dhcp; tftpboot 0 scriptcmd; if iminfo 0; then autoscr 0; fi" }
while true; do echo -n "Which boot process do you want to add ? ( [U]sb / [T]ftp / [B]oth ) : " read addbp case $addbp in U) usbaddboot wmtserver set bootcmd "run bootusb; run scriptcmd; run mmcboot; echo No MMC card found; run nandboot; echo No kernel found" echo "USB boot added" break;;
T) tftpaddboot wmtserver set bootcmd "run boottftp; run scriptcmd; run mmcboot; echo No MMC card found; run nandboot; echo No kernel found" echo "TFTP boot added" break;;
B) usbaddboot tftpaddboot wmtserver set bootcmd "run bootusb; run boottftp; run scriptcmd; run mmcboot; echo No MMC card found; run nandboot; echo No kernel found" echo "USB (1st) & TFTP (2nd) boots added" break;;
*) echo "Input not recognized. Usage is : U or T or B" echo "";; esac done exit 0
Royal Panda
unread,
Jun 5, 2013, 9:51:03 AM6/5/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to apc-pico-...@googlegroups.com
This script can be executed from an ADB shell of apc 8750.
You will have to put this text in a file called : script_adb.sh
then :
# chmod 755 script_adb.sh # ./script_adb.sh
pahowells
unread,
Jun 5, 2013, 1:13:14 PM6/5/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message