diff --git a/devices/Sub-Gen1/docs/mdputil.txt b/devices/Sub-Gen1/docs/mdputil.txt new file mode 100644 index 0000000..e98091d --- /dev/null +++ b/devices/Sub-Gen1/docs/mdputil.txt @@ -0,0 +1,27 @@ +mdp[0x19] | HAS_HWFEATURES | CONSOLE_ENABLE | KERNEL_PRINTK_ENABLE + +-B + do something with MD5, RSA to mdp and loaded key in mtdblock0 + +-F + Set flags(0x19) + (perform and/or operations to 0x19 bytes of mdp) + + +-I + reset mdp buf to default. + +-L + ? + +-M + ? + +-s + set new serial number + +-w + write + +-f + force write, usually used with -w to force upgrade device info when a valid one already exists. diff --git a/devices/Sub-Gen1/dumps/extracted_fses/mtdblock2.tar.gz b/devices/Sub-Gen1/dumps/extracted_fses/mtdblock2.tar.gz new file mode 100644 index 0000000..c23d6da Binary files /dev/null and b/devices/Sub-Gen1/dumps/extracted_fses/mtdblock2.tar.gz differ diff --git a/devices/Sub-Gen1/dumps/extracted_fses/mtdblock5.tar.gz b/devices/Sub-Gen1/dumps/extracted_fses/mtdblock5.tar.gz new file mode 100644 index 0000000..716f357 Binary files /dev/null and b/devices/Sub-Gen1/dumps/extracted_fses/mtdblock5.tar.gz differ diff --git a/devices/Sub-Gen1/dumps/mtdblocks/mtdblock0.gz b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock0.gz new file mode 100644 index 0000000..0313ee1 Binary files /dev/null and b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock0.gz differ diff --git a/devices/Sub-Gen1/dumps/mtdblocks/mtdblock1.gz b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock1.gz new file mode 100644 index 0000000..95cec11 Binary files /dev/null and b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock1.gz differ diff --git a/devices/Sub-Gen1/dumps/mtdblocks/mtdblock2.gz b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock2.gz new file mode 100644 index 0000000..aa98dc4 Binary files /dev/null and b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock2.gz differ diff --git a/devices/Sub-Gen1/dumps/mtdblocks/mtdblock3.gz b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock3.gz new file mode 100644 index 0000000..de189ac Binary files /dev/null and b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock3.gz differ diff --git a/devices/Sub-Gen1/dumps/mtdblocks/mtdblock4.gz b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock4.gz new file mode 100644 index 0000000..c0607a0 Binary files /dev/null and b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock4.gz differ diff --git a/devices/Sub-Gen1/dumps/mtdblocks/mtdblock5.gz b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock5.gz new file mode 100644 index 0000000..ee9d869 Binary files /dev/null and b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock5.gz differ diff --git a/devices/Sub-Gen1/dumps/mtdblocks/mtdblock7.gz b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock7.gz new file mode 100644 index 0000000..7ff3020 Binary files /dev/null and b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock7.gz differ diff --git a/devices/Sub-Gen1/dumps/mtdblocks/mtdblock8.gz b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock8.gz new file mode 100644 index 0000000..398bf22 Binary files /dev/null and b/devices/Sub-Gen1/dumps/mtdblocks/mtdblock8.gz differ diff --git a/devices/Sub-Gen1/scripts/dumpfs.py b/devices/Sub-Gen1/scripts/dumpfs.py new file mode 100644 index 0000000..b5a0ddd --- /dev/null +++ b/devices/Sub-Gen1/scripts/dumpfs.py @@ -0,0 +1,74 @@ +import serial +import time +ser = serial.Serial( + port='/dev/cu.usbserial-AB0KG6J0', + baudrate=115200, +) + +def hexstring2bin(hs): + # print("".join([chr(c) for c in hs])) + if len(hs) % 2 != 0: hs = hs[:-1] + raw = [int(chr(hs[i*2]) + chr(hs[i*2+1]), 16) for i in range(len(hs) // 2)] + return bytes(raw) + + +print(ser.isOpen()) + +#mkdir /tmp/rm; mount --bind / /tmp/rm +#mkdir /ramdisk/text; echo "hello" > /ramdisk/text/hello; echo "world" > /ramdisk/text/world + +# ser.write("tar -c /ramdisk/tmp/rootmount 2>/dev/null | gzip -c\r\n".encode('ascii')) +# ser.write("tar -c /ramdisk/text 2>/dev/null | hexdump -ve '1/1 \"%.2x\"' \r\n".encode('ascii')) +# ser.write("tar -c /ramdisk/tmp/rm 2>/dev/null | gzip -c | hexdump -ve '1/1 \"%.2x\"' \r\n".encode('ascii')) +ser.write("cat /dev/mtdblock8 2>/dev/null | gzip -c | hexdump -ve '1/1 \"%.2x\"' \r\n".encode('ascii')) +# ser.write("ls\r\n".encode('ascii')) + +# time.sleep(2) +data = bytes() +bytes_cnt = 0 +last_rep = 0 +cp_cnt = 1 +last_cp = 0 + +while True: + if ser.read(1).decode('ascii') == '\n': break + + +while True: + if ser.inWaiting() <= 0: + empty_cnt = 200 + while empty_cnt > 0: + time.sleep(0.05) + if ser.inWaiting() > 0: break + empty_cnt -= 1 + + if empty_cnt <= 0: break + + chunk = ser.read(ser.inWaiting()) + data += chunk + bytes_cnt += len(chunk) + if bytes_cnt - last_rep > 1024: + print(f"got {bytes_cnt / 1024 : .2f}KB, actual size {bytes_cnt / 1024 / 2 : .2f}KB", end="\r") + last_rep = bytes_cnt + + + # if bytes_cnt - last_cp > 1024 * 1024: + # print("\ncheck point saved") + # f = open(f"cps/checkpoint{cp_cnt}.tar.gz",'wb') + # cp_cnt += 1 + # f.write(hexstring2bin(data)) + # f.flush() + # f.close() + # last_cp = bytes_cnt + # print(d.__class__) + # data.append() + +while True: + if chr(data[-1]) in ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f']: break + data = data[:-1] + +open("raw.bin", 'wb').write(data) + +open("mtdblocks/mtdblock8.gz", 'wb').write(hexstring2bin(data)) +print() +print(len(data)) \ No newline at end of file diff --git a/devices/Sub-Gen1/scripts/uboot_dump_nand.py b/devices/Sub-Gen1/scripts/uboot_dump_nand.py new file mode 100644 index 0000000..abc63c2 --- /dev/null +++ b/devices/Sub-Gen1/scripts/uboot_dump_nand.py @@ -0,0 +1,81 @@ +#dump nand with md command from uboot + +import os +import serial +import time + +START = 0x00 +END = 0x4000000 + +PER_DUMP_SIZE = 1024 * 2048 +FILE_PATH = "nand.bin" + +f = open(FILE_PATH, 'ab') + +dumped = os.fstat(f.fileno()).st_size +if dumped > 0: + print(f"found {dumped} bytes dumped, continuing") + + +ser = serial.Serial( + port='/dev/cu.usbserial-AB0KG6J0', + baudrate=115200, + bytesize=serial.EIGHTBITS, + parity=serial.PARITY_NONE, + stopbits=serial.STOPBITS_ONE, +) +print(f"serial port good? {ser.isOpen()}") +ptr = dumped + +def hexstring2bin(hs): + # print("".join([chr(c) for c in hs])) + if len(hs) % 2 != 0: hs = hs[:-1] + raw = [int(hs[i*2] + hs[i*2+1], 16) for i in range(len(hs) // 2)] + return bytes(raw) + +def skip2prompt(ser): + ss = '' + while(True): + s = ser.readline().decode('ascii') + ss += s + if '=>' in s: return ss + +f.close() + +while ptr < END: + chunk = PER_DUMP_SIZE + print(f"Reading 0x{ptr:x} into mem...") + time.sleep(0.01) + ser.write(f"nand read 0x200000 0x{ptr:x} 0x{chunk:x}\n".encode('ascii')) + ser.flush() + + ser.readline().decode('ascii') + ser.readline().decode('ascii') + ser.readline().decode('ascii') + ser.readline().decode('ascii') + + + + ser.write(f"md 0x200000 0x{chunk:x}\n".encode('ascii')) + ser.flush() + ser.readline().decode('ascii') + data_chunk = bytes(0) + cnt = 0 + while chunk > 0: + o = ser.readline().decode('ascii') + raw = hexstring2bin(''.join(o.strip().split(' ')[1:5])) + data_chunk += raw + chunk -= len(raw) + + cnt += len(raw) + print(f"got {cnt / 1024 : .2f}KB, actual size {cnt / 1024 / 2 : .2f}KB", end="\r") + + assert(len(data_chunk) == PER_DUMP_SIZE) + ptr += len(data_chunk) + f = open(FILE_PATH, 'ab') + f.write(data_chunk) + f.flush() + f.close() + print("chunk saved to dump file") + + diff --git a/devices/ZP120/UBOOT.md b/devices/ZP120/UBOOT.md index e69de29..e4f5237 100644 --- a/devices/ZP120/UBOOT.md +++ b/devices/ZP120/UBOOT.md @@ -0,0 +1,31 @@ +# Serial console output without NAND flash + +``` +U-Boot 1.1.1(1-16-3-0.9), Build: 0.9 + +MPC8272 Reset Status: External Soft, External Hard + +MPC8272 Clock Configuration + - Bus-to-Core Mult 3x, VCO Div 4, 60x Bus Freq 16-50 , Core Freq 50-150 + - dfbrg 1, corecnf 0x10, busdf 3, cpmdf 1, plldf 0, pllmf 3 + - vco_out 400000000, scc_clk 100000000, brg_clk 25000000 + - cpu_clk 300000000, cpm_clk 200000000, bus_clk 100000000 + - pci_clk 33333333 + +CPU: MPC8272 (HiP7 Rev 14, Mask unknown [immr=0x0d10,k=0x00e1]) at 300 MHz +Board: Sonos Wembley +DRAM: 32 MB +DRAM test +Test complete - 0 errors, error pattern 00000000 +Using default environment + +In: serial +Out: serial +Err: serial +Net: FCC2 ETHERNET +Hit any key to stop autoboot: 0 +NAND ID is 00:4e +Unknown or defective NAND flash device +bootfail 401 +=> +``` diff --git a/devices/ZP120/dumps/j15005-console-boot.txt b/devices/ZP120/dumps/console/j15005-console-boot.txt similarity index 100% rename from devices/ZP120/dumps/j15005-console-boot.txt rename to devices/ZP120/dumps/console/j15005-console-boot.txt diff --git a/devices/ZP120/dumps/j15005-console-os-boot.txt b/devices/ZP120/dumps/console/j15005-console-os-boot.txt similarity index 100% rename from devices/ZP120/dumps/j15005-console-os-boot.txt rename to devices/ZP120/dumps/console/j15005-console-os-boot.txt diff --git a/devices/ZP120/dumps/j15005-recoverme.txt b/devices/ZP120/dumps/console/j15005-recoverme.txt similarity index 100% rename from devices/ZP120/dumps/j15005-recoverme.txt rename to devices/ZP120/dumps/console/j15005-recoverme.txt diff --git a/devices/ZP120/dumps/flash/EN29LV512.BIN b/devices/ZP120/dumps/flash/EN29LV512.BIN new file mode 100644 index 0000000..57aab9c Binary files /dev/null and b/devices/ZP120/dumps/flash/EN29LV512.BIN differ diff --git a/devices/ZP120/dumps/flash/NAND256W3A2B.BIN b/devices/ZP120/dumps/flash/NAND256W3A2B.BIN new file mode 100644 index 0000000..c71952a Binary files /dev/null and b/devices/ZP120/dumps/flash/NAND256W3A2B.BIN differ diff --git a/devices/ZP120/filesystems/diagfs.tar.gz b/devices/ZP120/filesystems/diagfs.tar.gz new file mode 100644 index 0000000..e3ea765 Binary files /dev/null and b/devices/ZP120/filesystems/diagfs.tar.gz differ diff --git a/devices/ZP120/filesystems/diagfs/LEGACYCOMPATVER b/devices/ZP120/filesystems/diagfs/LEGACYCOMPATVER new file mode 100644 index 0000000..7cae3b5 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/LEGACYCOMPATVER @@ -0,0 +1 @@ +36.0-00000 diff --git a/devices/ZP120/filesystems/diagfs/MINCOMPATVER b/devices/ZP120/filesystems/diagfs/MINCOMPATVER new file mode 100644 index 0000000..d3da62e --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/MINCOMPATVER @@ -0,0 +1 @@ +53.0-00000 diff --git a/devices/ZP120/filesystems/diagfs/VERSION b/devices/ZP120/filesystems/diagfs/VERSION new file mode 100644 index 0000000..84d8b62 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/VERSION @@ -0,0 +1 @@ +54.2-72160 diff --git a/devices/ZP120/filesystems/diagfs/bin/ash b/devices/ZP120/filesystems/diagfs/bin/ash new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/ash @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/busybox b/devices/ZP120/filesystems/diagfs/bin/busybox new file mode 100755 index 0000000..def0f36 Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/bin/busybox differ diff --git a/devices/ZP120/filesystems/diagfs/bin/cat b/devices/ZP120/filesystems/diagfs/bin/cat new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/cat @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/chmod b/devices/ZP120/filesystems/diagfs/bin/chmod new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/chmod @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/cp b/devices/ZP120/filesystems/diagfs/bin/cp new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/cp @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/date b/devices/ZP120/filesystems/diagfs/bin/date new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/date @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/dd b/devices/ZP120/filesystems/diagfs/bin/dd new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/dd @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/df b/devices/ZP120/filesystems/diagfs/bin/df new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/df @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/dmesg b/devices/ZP120/filesystems/diagfs/bin/dmesg new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/dmesg @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/dnsdomainname b/devices/ZP120/filesystems/diagfs/bin/dnsdomainname new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/dnsdomainname @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/echo b/devices/ZP120/filesystems/diagfs/bin/echo new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/echo @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/false b/devices/ZP120/filesystems/diagfs/bin/false new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/false @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/formatjffs b/devices/ZP120/filesystems/diagfs/bin/formatjffs new file mode 100755 index 0000000..d644794 Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/bin/formatjffs differ diff --git a/devices/ZP120/filesystems/diagfs/bin/grep b/devices/ZP120/filesystems/diagfs/bin/grep new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/grep @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/hostname b/devices/ZP120/filesystems/diagfs/bin/hostname new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/hostname @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/kill b/devices/ZP120/filesystems/diagfs/bin/kill new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/kill @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/ln b/devices/ZP120/filesystems/diagfs/bin/ln new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/ln @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/login b/devices/ZP120/filesystems/diagfs/bin/login new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/login @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/ls b/devices/ZP120/filesystems/diagfs/bin/ls new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/ls @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/mdputil b/devices/ZP120/filesystems/diagfs/bin/mdputil new file mode 100755 index 0000000..9747725 Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/bin/mdputil differ diff --git a/devices/ZP120/filesystems/diagfs/bin/mkdir b/devices/ZP120/filesystems/diagfs/bin/mkdir new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/mkdir @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/more b/devices/ZP120/filesystems/diagfs/bin/more new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/more @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/mount b/devices/ZP120/filesystems/diagfs/bin/mount new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/mount @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/mv b/devices/ZP120/filesystems/diagfs/bin/mv new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/mv @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/netstat b/devices/ZP120/filesystems/diagfs/bin/netstat new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/netstat @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/pidof b/devices/ZP120/filesystems/diagfs/bin/pidof new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/pidof @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/ping b/devices/ZP120/filesystems/diagfs/bin/ping new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/ping @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/ps b/devices/ZP120/filesystems/diagfs/bin/ps new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/ps @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/pwd b/devices/ZP120/filesystems/diagfs/bin/pwd new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/pwd @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/rm b/devices/ZP120/filesystems/diagfs/bin/rm new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/rm @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/rmdir b/devices/ZP120/filesystems/diagfs/bin/rmdir new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/rmdir @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/sh b/devices/ZP120/filesystems/diagfs/bin/sh new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/sh @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/sleep b/devices/ZP120/filesystems/diagfs/bin/sleep new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/sleep @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/sync b/devices/ZP120/filesystems/diagfs/bin/sync new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/sync @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/touch b/devices/ZP120/filesystems/diagfs/bin/touch new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/touch @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/true b/devices/ZP120/filesystems/diagfs/bin/true new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/true @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/umount b/devices/ZP120/filesystems/diagfs/bin/umount new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/umount @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/uname b/devices/ZP120/filesystems/diagfs/bin/uname new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/uname @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/bin/upgrade b/devices/ZP120/filesystems/diagfs/bin/upgrade new file mode 100755 index 0000000..d13d272 Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/bin/upgrade differ diff --git a/devices/ZP120/filesystems/diagfs/bin/upgrade_mgr b/devices/ZP120/filesystems/diagfs/bin/upgrade_mgr new file mode 100755 index 0000000..1c1cc9a Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/bin/upgrade_mgr differ diff --git a/devices/ZP120/filesystems/diagfs/bin/vi b/devices/ZP120/filesystems/diagfs/bin/vi new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/bin/vi @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/build.properties b/devices/ZP120/filesystems/diagfs/build.properties new file mode 100644 index 0000000..8b8d5b8 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/build.properties @@ -0,0 +1,8 @@ +build.date = 2019-12-16 21:07:18.154376 +build.sysinfo = Linux LIN-200 4.4.0-128-generic #154-Ubuntu SMP Fri May 25 14:15:18 UTC 2018 x86_64 x86_64 +build.arch.type = ppc +build.scm.version = 660463 +build.scm.path = //depot/branches/2019_r7_release +build.type = release +build.host = LIN-200 +build.version = 54.2-72160 diff --git a/devices/ZP120/filesystems/diagfs/etc/Configure b/devices/ZP120/filesystems/diagfs/etc/Configure new file mode 100755 index 0000000..08e83d1 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/Configure @@ -0,0 +1,99 @@ +#!/bin/sh + +mount -t proc proc proc + +/sbin/ifconfig lo 127.0.0.1 up + +mount -t ramfs ramfs /ramdisk +mkdir -m 777 /ramdisk/var +mkdir -m 777 /ramdisk/var/run +mkdir -m 777 /ramdisk/var/log +mkdir -m 777 /ramdisk/tmp +mkdir -m 777 /ramdisk/tmp/pub +mkdir -m 777 /ramdisk/optlog +mkdir -m 777 /ramdisk/smb + +if [ -f /bin/repartition.sh ]; then + sh /bin/repartition.sh +fi + +mount -t jffs2 -o noatime /dev/nandjffs /jffs +if [ $? -ne 0 ] +then + if [ -f /bin/formatjffs ]; then + echo "Reformat jffs" >> /opt/log/repartition.log + /bin/formatjffs + mount -t jffs2 -o noatime /dev/nandjffs /jffs + fi +fi + +/etc/init.d/Srandom + +/sbin/insmod /modules/chk_driver.o +/sbin/insmod /modules/audiodev.o + +/wifi/netstartd --resetcheckonly + +mkdir -p /jffs/app/run +mkdir -p /jffs/app/log +mkdir -p /jffs/app/debug +mkdir -p /jffs/app/settings +mkdir -p /jffs/sys/run +mkdir -p /jffs/sys/log +mkdir -p /jffs/sys/debug +mkdir -p /jffs/sys/settings +mkdir -p /jffs/net/run +mkdir -p /jffs/net/log +mkdir -p /jffs/net/debug +mkdir -p /jffs/net/settings +mkdir -p /jffs/persist + +/bin/mdputil -B + +HOSTNAME=Sonos-`/bin/mdputil | /usr/sbin/keyval ^SERIAL | /usr/bin/cut -c 1-12` +/bin/hostname $HOSTNAME + +if [ -f /jffs/Configure ]; then + echo "Running custom Configure..." + exec /jffs/Configure +fi + +echo 262143 > /proc/sys/net/core/rmem_max +echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts + +echo 32768 36863 > /proc/sys/net/ipv4/ip_local_port_range + +wifiType=N + +/sbin/insmod /wifi/$wifiType/ath_hal.o +/sbin/insmod /wifi/$wifiType/ath_driver.o + +if [ -e /wifi/bridge-ppc.o ]; then + /sbin/insmod /wifi/bridge-ppc.o +fi + +/usr/sbin/setmac + +touch /var/run/waitforip + +if [ -f /etc/unlocked_build_flag -o -e /jffs/system/Configure.dev ]; then + /etc/scripts/run_sshd.sh + + ln -s /opt/htdocs_locked /tmp/htdocs_locked + + touch /tmp/device_unlocked_flag +fi + +if [ -f /jffs/system/Configure.dev ]; then + sh /jffs/system/Configure.dev +fi + +if [ -s /jffs/hosts ]; then + touch /jffs/hosts +else + cp /etc/hosts.orig /jffs/hosts +fi + +/etc/init.d/Krandom + +echo "Configure script complete." diff --git a/devices/ZP120/filesystems/diagfs/etc/dhcp.script b/devices/ZP120/filesystems/diagfs/etc/dhcp.script new file mode 100755 index 0000000..7cda2d4 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/dhcp.script @@ -0,0 +1,54 @@ +#!/bin/sh + +[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 + +RESOLV_CONF="/etc/resolv.conf" +[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" +[ -n "$subnet" ] && NETMASK="netmask $subnet" + +case "$1" in + nak) + echo received a NAK: $message + ;; + + deconfig) + ifconfig $interface 0.0.0.0 + + route del 255.255.255.255 2> /dev/null + route add 255.255.255.255 $interface + + route del -net 224.0.0.0 netmask 240.0.0.0 2> /dev/null + route add -net 224.0.0.0 netmask 240.0.0.0 $interface + ;; + + renew|bound) + rm /var/run/waitforip 2> /dev/null + + ifconfig $interface $ip $BROADCAST $NETMASK + + if [ -n "$router" ] ; then + while route del default gw 0.0.0.0 dev $interface 2> /dev/null ; do + : + done + + for i in $router ; do + route add default gw $i dev $interface + done + fi + + route del 255.255.255.255 2> /dev/null + route add 255.255.255.255 $interface + + route del -net 224.0.0.0 netmask 240.0.0.0 2> /dev/null + route add -net 224.0.0.0 netmask 240.0.0.0 $interface + + echo -n > $RESOLV_CONF + [ -n "$domain" ] && echo search $domain >> $RESOLV_CONF + for i in $dns ; do + echo adding dns $i + echo nameserver $i >> $RESOLV_CONF + done + ;; +esac + +exit 0 diff --git a/devices/ZP120/filesystems/diagfs/etc/fstab b/devices/ZP120/filesystems/diagfs/etc/fstab new file mode 100644 index 0000000..3cc0833 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/fstab @@ -0,0 +1,8 @@ +# /etc/fstab: static file system information. +# +# +#/dev/root / auto defaults,errors=remount-ro 0 0 +/dev/mapper/crroot / auto noatime,nodiratime,defaults 0 0 +proc /proc proc defaults 0 0 +none /dev/pts devpts gid=5,mode=620 0 0 +tmpfs /dev/shm tmpfs defaults,noexec,nodev,nosuid,mode=600 0 0 diff --git a/devices/ZP120/filesystems/diagfs/etc/group b/devices/ZP120/filesystems/diagfs/etc/group new file mode 100644 index 0000000..44737a8 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/group @@ -0,0 +1,22 @@ +root:*:0:root,operator +bin:*:1:bin +daemon:*:2:daemon +sys:*:3:sys +adm:*:4:adm +tty:*:5: +disk:*:6: +lp:*:7:lp +sync:*:8:sync +shutdown:*:9:shutdown +halt:*:10:halt +mail:*:11:mail +news:*:12:news +uucp:*:13:uucp +ftp:*:14:ftp +kmem:*:15: +utmp:*:16: +shadow:*:17: +users:*:100: +nogroup:*:65534: +upgrade:x:998: +messagebus:x:18: diff --git a/devices/ZP120/filesystems/diagfs/etc/host.conf b/devices/ZP120/filesystems/diagfs/etc/host.conf new file mode 100644 index 0000000..1a8c1e1 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/host.conf @@ -0,0 +1,2 @@ +order hosts,bind +multi on diff --git a/devices/ZP120/filesystems/diagfs/etc/hosts b/devices/ZP120/filesystems/diagfs/etc/hosts new file mode 120000 index 0000000..0a62c24 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/hosts @@ -0,0 +1 @@ +/jffs/hosts \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/etc/hosts.orig b/devices/ZP120/filesystems/diagfs/etc/hosts.orig new file mode 100644 index 0000000..eb73c79 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/hosts.orig @@ -0,0 +1,3 @@ +127.0.0.1 localhost.localdomain localhost +255.255.255.255 all-ones all-ones + diff --git a/devices/ZP120/filesystems/diagfs/etc/init.d/Krandom b/devices/ZP120/filesystems/diagfs/etc/init.d/Krandom new file mode 100755 index 0000000..3714476 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/init.d/Krandom @@ -0,0 +1,17 @@ +#!/bin/sh +echo "Saving random seed..." +random_seed=/jffs/random-seed +touch $random_seed +chmod 600 $random_seed +poolfile=/proc/sys/kernel/random/poolsize +# linux 2.4 has the poolsize in bytes, >= 2.6 in bits +case `uname -r` in + 2.4.*) + [ -r $poolfile ] && bytes=`cat $poolfile` || bytes=512 + ;; + *) + [ -r $poolfile ] && bits=`cat $poolfile` || bits=4096 + bytes=$(expr $bits / 8) + ;; +esac +dd if=/dev/urandom "of=$random_seed" count=1 "bs=$bytes" 2> /dev/null diff --git a/devices/ZP120/filesystems/diagfs/etc/init.d/Srandom b/devices/ZP120/filesystems/diagfs/etc/init.d/Srandom new file mode 100755 index 0000000..fe8e603 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/init.d/Srandom @@ -0,0 +1,8 @@ +#!/bin/sh +echo "Initializing random number generator..." +random_seed=/jffs/random-seed +# Carry a random seed from start-up to start-up +# Load and then save the whole entropy pool +if [ -f $random_seed ]; then + cat $random_seed >/dev/urandom +fi diff --git a/devices/ZP120/filesystems/diagfs/etc/init.d/checkroot.sh b/devices/ZP120/filesystems/diagfs/etc/init.d/checkroot.sh new file mode 100755 index 0000000..0711325 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/init.d/checkroot.sh @@ -0,0 +1,139 @@ +# +# checkroot.sh Check to root file system. +# +# Version: @(#)checkroot.sh 2.78-4 25-Jun-2000 miquels@cistron.nl +# +# chkconfig: S 10 0 +# + +. /etc/default/rcS + +# +# Set SULOGIN in /etc/default/rcS to yes if you want a sulogin to be spawned +# from this script *before anything else* with a timeout, like SCO does. +# +[ "$SULOGIN" = yes ] && sulogin -t 30 $CONSOLE + +# +# Activate the swap device(s) in /etc/fstab. This needs to be done +# before fsck, since fsck can be quite memory-hungry. +# +if [ -x /sbin/swapon ] +then + mount -n /proc + if ! grep -qs resync /proc/mdstat + then + [ "$VERBOSE" != no ] && echo "Activating swap..." + swapon -a 2> /dev/null + fi + umount -n /proc +fi + +# +# Ensure that bdflush (update) is running before any major I/O is +# performed (the following fsck is a good example of such activity :). +# +[ -x /sbin/update ] && update + +# +# Read /etc/fstab. +# +exec 9>&0 &9 9>&- + +# +# Check the root file system. +# +if [ -f /fastboot ] || [ $rootcheck = no ] +then + [ $rootcheck = yes ] && echo "Fast boot, no file system check" +else + # + # Ensure that root is quiescent and read-only before fsck'ing. + # + mount -n -o remount,ro / + if [ $? = 0 ] + then + if [ -f /forcefsck ] + then + force="-f" + else + force="" + fi + if [ "$FSCKFIX" = yes ] + then + fix="-y" + else + fix="-a" + fi + echo "Checking root file system..." + fsck -C $force $fix / + # + # If there was a failure, drop into single-user mode. + # + # NOTE: "failure" is defined as exiting with a return code of + # 2 or larger. A return code of 1 indicates that file system + # errors were corrected but that the boot may proceed. + # + if [ $? -gt 1 ] + then + # Surprise! Re-directing from a HERE document (as in + # "cat << EOF") won't work, because the root is read-only. + echo + echo "fsck failed. Please repair manually and reboot. Please note" + echo "that the root file system is currently mounted read-only. To" + echo "remount it read-write:" + echo + echo " # mount -n -o remount,rw /" + echo + echo "CONTROL-D will exit from this shell and REBOOT the system." + echo + # Start a single user shell on the console + /sbin/sulogin $CONSOLE + reboot -f + fi + else + echo "*** ERROR! Cannot fsck root fs because it is not mounted read-only!" + echo + fi +fi + +# +# If the root filesystem was not marked as read-only in /etc/fstab, +# remount the rootfs rw but do not try to change mtab because it +# is on a ro fs until the remount succeeded. Then clean up old mtabs +# and finally write the new mtab. +# +mount -n -o remount,$rootopts / +if [ "$rootmode" = rw ] +then + rm -f /etc/mtab~ /etc/nologin + : > /etc/mtab + mount -f -o remount,$rootopts / + mount /proc + [ "$devfs" ] && grep -q '^devfs /dev' /proc/mounts && mount -f "$devfs" +else + mount -n /proc +fi + diff --git a/devices/ZP120/filesystems/diagfs/etc/init.d/netconf b/devices/ZP120/filesystems/diagfs/etc/init.d/netconf new file mode 100755 index 0000000..29dcaba --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/init.d/netconf @@ -0,0 +1,16 @@ +#!/bin/sh + +case "$1" in +start) +/etc/Configure +;; + +stop) +;; + +*) + echo "Usage: /etc/init.d/netconf {start|stop}" + exit 1 +esac + +exit 0 diff --git a/devices/ZP120/filesystems/diagfs/etc/init.d/nscd b/devices/ZP120/filesystems/diagfs/etc/init.d/nscd new file mode 100755 index 0000000..5d5bb13 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/init.d/nscd @@ -0,0 +1,62 @@ +#!/bin/sh +# +# nscd: Starts the Name Service Cache Daemon +# +# description: This is a daemon which handles passwd and group lookups +# for running programs and caches the results for the next +# query. You should start this daemon only if you use +# slow Services like NIS or NIS+ + +# Sanity checks. +[ -f /etc/nscd.conf ] || exit 0 +[ -x /usr/sbin/nscd ] || exit 0 + +# nscd does not run on any kernel lower than 2.2.0 because of threading +# problems, so we require that in first place. +case `uname -r` in + 2.[0-1].*|1.*) + # This is not ok + exit 0 + ;; +esac + +RETVAL=0 +case "$1" in + start) + secure="" + for table in passwd group + do + if egrep '^'$table':.*nisplus' /etc/nsswitch.conf >/dev/null + then + /usr/sbin/nscd_nischeck $table || + secure="$secure -S $table,yes" + fi + done + echo -n "Starting Name Service Cache Daemon: " + echo "nscd." + start-stop-daemon --start --quiet --exec /usr/sbin/nscd -- $secure + RETVAL=$? + ;; + stop) + echo -n "Stopping Name Service Cache Daemon: " + echo nscd. + /usr/sbin/nscd -K + RETVAL=$? + ;; + reload) + echo "Reloading Name Service Cache Daemon configuration." + start-stop-daemon --stop --signal 1 --quiet --oknodo --exec /usr/sbin/nscd + RETVAL=$? + ;; + force-reload) + $0 stop + $0 start + ;; + restart) + $0 force-reload + ;; + *) + echo "Usage: /etc/init.d/nscd {start|stop|reload|force-reload|restart}" + ;; +esac +exit $RETVAL diff --git a/devices/ZP120/filesystems/diagfs/etc/init.d/rcK b/devices/ZP120/filesystems/diagfs/etc/init.d/rcK new file mode 100755 index 0000000..4bd8161 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/init.d/rcK @@ -0,0 +1,6 @@ +#!/bin/sh +# Preserve seed +/etc/init.d/Krandom +sync +sleep 1 +sync diff --git a/devices/ZP120/filesystems/diagfs/etc/init.d/rcS b/devices/ZP120/filesystems/diagfs/etc/init.d/rcS new file mode 100755 index 0000000..0b47371 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/init.d/rcS @@ -0,0 +1,12 @@ +#!/bin/sh + +mount -t proc proc proc +mount /dev/pts +rm -f /var/run/*.pid +rm -f /tmp/* +ifconfig lo 127.0.0.1 up +/etc/init.d/syslog start +/etc/init.d/netconf start +# Initialize RNG +/etc/init.d/Srandom +exit 0 diff --git a/devices/ZP120/filesystems/diagfs/etc/init.d/syslog b/devices/ZP120/filesystems/diagfs/etc/init.d/syslog new file mode 100755 index 0000000..9afa6e8 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/init.d/syslog @@ -0,0 +1,40 @@ +#! /bin/sh +# /etc/init.d/sysklogd: start system and kernel log daemons. +# +# chkconfig: 2345 10 90 +# +PATH=/bin:/usr/bin:/sbin:/usr/sbin + +test -f /sbin/klogd || exit 0 +test -f /sbin/syslogd || exit 0 + +# Options for start/restart the daemons +# For remote UDP logging use SYSLOGD="-r" +# +SYSLOGD="" + +# Use KLOGD="-k /boot/System.map-$(uname -r)" to specify System.map +# +KLOGD="" + +case "$1" in + start) + echo -n "Starting system log daemon: syslogd" + start-stop-daemon -S -x /sbin/syslogd + echo -n " klogd" + start-stop-daemon -S -x /sbin/klogd + echo "." + ;; + stop) + echo -n "Stopping system log daemon: klogd" + start-stop-daemon -K -x /sbin/klogd + echo -n " syslogd" + start-stop-daemon -K -x /sbin/syslogd + echo "." + ;; + *) + echo "Usage: /etc/init.d/sysklogd {start|stop}" + exit 1 +esac + +exit 0 diff --git a/devices/ZP120/filesystems/diagfs/etc/inittab b/devices/ZP120/filesystems/diagfs/etc/inittab new file mode 100644 index 0000000..86ca946 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/inittab @@ -0,0 +1,8 @@ +# autogenerated by gen_inittab.py for ARCH ppc; DO NOT EDIT +::sysinit:/etc/Configure +null::respawn:/wifi/netstartd +null::respawn:/etc/runanacapa +/dev/tts/0::askfirst:/bin/sh +::ctrlaltdel:/sbin/reboot +::shutdown:/etc/init.d/rcK +::restart:/sbin/init diff --git a/devices/ZP120/filesystems/diagfs/etc/inputrc b/devices/ZP120/filesystems/diagfs/etc/inputrc new file mode 100644 index 0000000..71367b2 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/inputrc @@ -0,0 +1,12 @@ +# /etc/inputrc - global inputrc for libreadline +# See readline(3readline) and `info readline' for more information. + +# Be 8 bit clean. +set input-meta on +set output-meta on + +# To allow the use of 8bit-characters like the german umlauts, comment out +# the line below. However this makes the meta key not work as a meta key, +# which is annoying to those which don't need to type in 8-bit characters. + +# set convert-meta off diff --git a/devices/ZP120/filesystems/diagfs/etc/issue b/devices/ZP120/filesystems/diagfs/etc/issue new file mode 100644 index 0000000..6b1cf33 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/issue @@ -0,0 +1,3 @@ + +Welcome to Rincon Networks + diff --git a/devices/ZP120/filesystems/diagfs/etc/issue.net b/devices/ZP120/filesystems/diagfs/etc/issue.net new file mode 100644 index 0000000..bca2826 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/issue.net @@ -0,0 +1,4 @@ + +Welcome to Rincon Networks +%s/%m %r + diff --git a/devices/ZP120/filesystems/diagfs/etc/motd b/devices/ZP120/filesystems/diagfs/etc/motd new file mode 100644 index 0000000..6b1cf33 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/motd @@ -0,0 +1,3 @@ + +Welcome to Rincon Networks + diff --git a/devices/ZP120/filesystems/diagfs/etc/mtab b/devices/ZP120/filesystems/diagfs/etc/mtab new file mode 100755 index 0000000..9bdc257 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/mtab @@ -0,0 +1,7 @@ +rootfs / rootfs rw 0 0 +/dev/root / ext3 rw 0 0 +/proc /proc proc rw 0 0 +usbdevfs /proc/bus/usb usbdevfs rw 0 0 +/dev/hda1 /boot ext3 rw 0 0 +none /dev/pts devpts rw 0 0 +none /dev/shm tmpfs rw 0 0 diff --git a/devices/ZP120/filesystems/diagfs/etc/nsswitch.conf b/devices/ZP120/filesystems/diagfs/etc/nsswitch.conf new file mode 100644 index 0000000..7164b1c --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/nsswitch.conf @@ -0,0 +1,19 @@ +# /etc/nsswitch.conf +# +# Example configuration of GNU Name Service Switch functionality. +# If you have the `glibc-doc' and `info' packages installed, try: +# `info libc "Name Service Switch"' for information about this file. + +passwd: files +group: files +shadow: files + +hosts: files dns +networks: files + +protocols: files +services: files +ethers: files +rpc: files + +netgroup: files diff --git a/devices/ZP120/filesystems/diagfs/etc/passwd b/devices/ZP120/filesystems/diagfs/etc/passwd new file mode 100644 index 0000000..207d4e4 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/passwd @@ -0,0 +1,12 @@ +root:$1$9n2LmM4w$NtTlyHjzb5wRUA0ajheD61:0:0:root:/:/bin/sh +bin:*:1:1:bin:/bin: +daemon:*:2:2:daemon:/usr/sbin: +sys:*:3:3:sys:/dev: +adm:*:4:4:adm:/var/adm: +sync:*:6:8:sync:/bin:/bin/sync +shutdown:*:7:9:shutdown:/sbin:/sbin/shutdown +halt:*:8:10:halt:/sbin:/sbin/halt +mail:*:9:11:mail:/var/spool/mail: +man:*:16:100:man:/var/cache/man: +nobody:*:65534:65534:nobody:/home:/bin/sh +messagebus:x:18:18:messagebus:/tmp:/bin/false diff --git a/devices/ZP120/filesystems/diagfs/etc/pointercal b/devices/ZP120/filesystems/diagfs/etc/pointercal new file mode 100644 index 0000000..009dac8 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/pointercal @@ -0,0 +1 @@ +1 0 0 0 1 0 1 diff --git a/devices/ZP120/filesystems/diagfs/etc/profile b/devices/ZP120/filesystems/diagfs/etc/profile new file mode 100644 index 0000000..e506dcf --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/profile @@ -0,0 +1,18 @@ +# /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) +# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). + +PATH="/usr/bin:/bin:/usr/sbin:/sbin" +if [ -f /proc/sonos-lock/fallback_state ] ; then + if [ "`cat /proc/sonos-lock/fallback_state`" != "0" ]; then + PS1='Fallback# ' ; + else + PS1='# ' ; + fi +else + PS1='# ' ; +fi + +export PATH PS1 + +umask 022 + diff --git a/devices/ZP120/filesystems/diagfs/etc/protocols b/devices/ZP120/filesystems/diagfs/etc/protocols new file mode 100644 index 0000000..1521f39 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/protocols @@ -0,0 +1,149 @@ +# /etc/protocols: +# $Id: protocols,v 1.3 2001/07/07 07:07:15 nalin Exp $ +# +# Internet (IP) protocols +# +# from: @(#)protocols 5.1 (Berkeley) 4/17/89 +# +# Updated for NetBSD based on RFC 1340, Assigned Numbers (July 1992). +# +# See also http://www.iana.org/assignments/protocol-numbers + +ip 0 IP # internet protocol, pseudo protocol number +#hopopt 0 HOPOPT # hop-by-hop options for ipv6 +icmp 1 ICMP # internet control message protocol +igmp 2 IGMP # internet group management protocol +ggp 3 GGP # gateway-gateway protocol +ipencap 4 IP-ENCAP # IP encapsulated in IP (officially ``IP'') +st 5 ST # ST datagram mode +tcp 6 TCP # transmission control protocol +cbt 7 CBT # CBT, Tony Ballardie +egp 8 EGP # exterior gateway protocol +igp 9 IGP # any private interior gateway (Cisco: for IGRP) +bbn-rcc 10 BBN-RCC-MON # BBN RCC Monitoring +nvp 11 NVP-II # Network Voice Protocol +pup 12 PUP # PARC universal packet protocol +argus 13 ARGUS # ARGUS +emcon 14 EMCON # EMCON +xnet 15 XNET # Cross Net Debugger +chaos 16 CHAOS # Chaos +udp 17 UDP # user datagram protocol +mux 18 MUX # Multiplexing protocol +dcn 19 DCN-MEAS # DCN Measurement Subsystems +hmp 20 HMP # host monitoring protocol +prm 21 PRM # packet radio measurement protocol +xns-idp 22 XNS-IDP # Xerox NS IDP +trunk-1 23 TRUNK-1 # Trunk-1 +trunk-2 24 TRUNK-2 # Trunk-2 +leaf-1 25 LEAF-1 # Leaf-1 +leaf-2 26 LEAF-2 # Leaf-2 +rdp 27 RDP # "reliable datagram" protocol +irtp 28 IRTP # Internet Reliable Transaction Protocol +iso-tp4 29 ISO-TP4 # ISO Transport Protocol Class 4 +netblt 30 NETBLT # Bulk Data Transfer Protocol +mfe-nsp 31 MFE-NSP # MFE Network Services Protocol +merit-inp 32 MERIT-INP # MERIT Internodal Protocol +sep 33 SEP # Sequential Exchange Protocol +3pc 34 3PC # Third Party Connect Protocol +idpr 35 IDPR # Inter-Domain Policy Routing Protocol +xtp 36 XTP # Xpress Tranfer Protocol +ddp 37 DDP # Datagram Delivery Protocol +idpr-cmtp 38 IDPR-CMTP # IDPR Control Message Transport Proto +tp++ 39 TP++ # TP++ Transport Protocol +il 40 IL # IL Transport Protocol +ipv6 41 IPv6 # IPv6 +sdrp 42 SDRP # Source Demand Routing Protocol +ipv6-route 43 IPv6-Route # Routing Header for IPv6 +ipv6-frag 44 IPv6-Frag # Fragment Header for IPv6 +idrp 45 IDRP # Inter-Domain Routing Protocol +rsvp 46 RSVP # Resource ReSerVation Protocol +gre 47 GRE # Generic Routing Encapsulation +mhrp 48 MHRP # Mobile Host Routing Protocol +bna 49 BNA # BNA +ipv6-crypt 50 IPv6-Crypt # Encryption Header for IPv6 +ipv6-auth 51 IPv6-Auth # Authentication Header for IPv6 +i-nlsp 52 I-NLSP # Integrated Net Layer Security TUBA +swipe 53 SWIPE # IP with Encryption +narp 54 NARP # NBMA Address Resolution Protocol +mobile 55 MOBILE # IP Mobility +tlsp 56 TLSP # Transport Layer Security Protocol +skip 57 SKIP # SKIP +ipv6-icmp 58 IPv6-ICMP # ICMP for IPv6 +ipv6-nonxt 59 IPv6-NoNxt # No Next Header for IPv6 +ipv6-opts 60 IPv6-Opts # Destination Options for IPv6 +# 61 # any host internal protocol +cftp 62 CFTP # CFTP +# 63 # any local network +sat-expak 64 SAT-EXPAK # SATNET and Backroom EXPAK +kryptolan 65 KRYPTOLAN # Kryptolan +rvd 66 RVD # MIT Remote Virtual Disk Protocol +ippc 67 IPPC # Internet Pluribus Packet Core +# 68 # any distributed file system +sat-mon 69 SAT-MON # SATNET Monitoring +visa 70 VISA # VISA Protocol +ipcv 71 IPCV # Internet Packet Core Utility +cpnx 72 CPNX # Computer Protocol Network Executive +cphb 73 CPHB # Computer Protocol Heart Beat +wsn 74 WSN # Wang Span Network +pvp 75 PVP # Packet Video Protocol +br-sat-mon 76 BR-SAT-MON # Backroom SATNET Monitoring +sun-nd 77 SUN-ND # SUN ND PROTOCOL-Temporary +wb-mon 78 WB-MON # WIDEBAND Monitoring +wb-expak 79 WB-EXPAK # WIDEBAND EXPAK +iso-ip 80 ISO-IP # ISO Internet Protocol +vmtp 81 VMTP # Versatile Message Transport +secure-vmtp 82 SECURE-VMTP # SECURE-VMTP +vines 83 VINES # VINES +ttp 84 TTP # TTP +nsfnet-igp 85 NSFNET-IGP # NSFNET-IGP +dgp 86 DGP # Dissimilar Gateway Protocol +tcf 87 TCF # TCF +eigrp 88 EIGRP # Enhanced Interior Routing Protocol (Cisco) +ospf 89 OSPFIGP # Open Shortest Path First IGP +sprite-rpc 90 Sprite-RPC # Sprite RPC Protocol +larp 91 LARP # Locus Address Resolution Protocol +mtp 92 MTP # Multicast Transport Protocol +ax.25 93 AX.25 # AX.25 Frames +ipip 94 IPIP # Yet Another IP encapsulation +micp 95 MICP # Mobile Internetworking Control Pro. +scc-sp 96 SCC-SP # Semaphore Communications Sec. Pro. +etherip 97 ETHERIP # Ethernet-within-IP Encapsulation +encap 98 ENCAP # Yet Another IP encapsulation +# 99 # any private encryption scheme +gmtp 100 GMTP # GMTP +ifmp 101 IFMP # Ipsilon Flow Management Protocol +pnni 102 PNNI # PNNI over IP +pim 103 PIM # Protocol Independent Multicast +aris 104 ARIS # ARIS +scps 105 SCPS # SCPS +qnx 106 QNX # QNX +a/n 107 A/N # Active Networks +ipcomp 108 IPComp # IP Payload Compression Protocol +snp 109 SNP # Sitara Networks Protocol +compaq-peer 110 Compaq-Peer # Compaq Peer Protocol +ipx-in-ip 111 IPX-in-IP # IPX in IP +vrrp 112 VRRP # Virtual Router Redundancy Protocol +pgm 113 PGM # PGM Reliable Transport Protocol +# 114 # any 0-hop protocol +l2tp 115 L2TP # Layer Two Tunneling Protocol +ddx 116 DDX # D-II Data Exchange +iatp 117 IATP # Interactive Agent Transfer Protocol +stp 118 STP # Schedule Transfer +srp 119 SRP # SpectraLink Radio Protocol +uti 120 UTI # UTI +smp 121 SMP # Simple Message Protocol +sm 122 SM # SM +ptp 123 PTP # Performance Transparency Protocol +isis 124 ISIS # ISIS over IPv4 +fire 125 FIRE +crtp 126 CRTP # Combat Radio Transport Protocol +crdup 127 CRUDP # Combat Radio User Datagram +sscopmce 128 SSCOPMCE +iplt 129 IPLT +sps 130 SPS # Secure Packet Shield +pipe 131 PIPE # Private IP Encapsulation within IP +sctp 132 SCTP # Stream Control Transmission Protocol +fc 133 FC # Fibre Channel +# rsvp-e2e-ignore 134 RSVP-E2E-IGNORE +# 134-254 # Unassigned +# 255 # Reserved diff --git a/devices/ZP120/filesystems/diagfs/etc/resolv.conf b/devices/ZP120/filesystems/diagfs/etc/resolv.conf new file mode 120000 index 0000000..7e54f7a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/resolv.conf @@ -0,0 +1 @@ +/var/run/resolv.conf \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/etc/rpc b/devices/ZP120/filesystems/diagfs/etc/rpc new file mode 100644 index 0000000..a80522f --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/rpc @@ -0,0 +1,68 @@ +#ident "@(#)rpc 1.11 95/07/14 SMI" /* SVr4.0 1.2 */ +# +# rpc +# +portmapper 100000 portmap sunrpc rpcbind +rstatd 100001 rstat rup perfmeter rstat_svc +rusersd 100002 rusers +nfs 100003 nfsprog +ypserv 100004 ypprog +mountd 100005 mount showmount +ypbind 100007 +walld 100008 rwall shutdown +yppasswdd 100009 yppasswd +etherstatd 100010 etherstat +rquotad 100011 rquotaprog quota rquota +sprayd 100012 spray +3270_mapper 100013 +rje_mapper 100014 +selection_svc 100015 selnsvc +database_svc 100016 +rexd 100017 rex +alis 100018 +sched 100019 +llockmgr 100020 +nlockmgr 100021 +x25.inr 100022 +statmon 100023 +status 100024 +bootparam 100026 +ypupdated 100028 ypupdate +keyserv 100029 keyserver +sunlink_mapper 100033 +tfsd 100037 +nsed 100038 +nsemntd 100039 +showfhd 100043 showfh +ioadmd 100055 rpc.ioadmd +NETlicense 100062 +sunisamd 100065 +debug_svc 100066 dbsrv +ypxfrd 100069 rpc.ypxfrd +bugtraqd 100071 +kerbd 100078 +event 100101 na.event # SunNet Manager +logger 100102 na.logger # SunNet Manager +sync 100104 na.sync +hostperf 100107 na.hostperf +activity 100109 na.activity # SunNet Manager +hostmem 100112 na.hostmem +sample 100113 na.sample +x25 100114 na.x25 +ping 100115 na.ping +rpcnfs 100116 na.rpcnfs +hostif 100117 na.hostif +etherif 100118 na.etherif +iproutes 100120 na.iproutes +layers 100121 na.layers +snmp 100122 na.snmp snmp-cmc snmp-synoptics snmp-unisys snmp-utk +traffic 100123 na.traffic +nfs_acl 100227 +sadmind 100232 +nisd 100300 rpc.nisd +nispasswd 100303 rpc.nispasswdd +ufsd 100233 ufsd +pcnfsd 150001 pcnfs +amd 300019 amq +bwnfsd 545580417 +fypxfrd 600100069 freebsd-ypxfrd diff --git a/devices/ZP120/filesystems/diagfs/etc/runanacapa b/devices/ZP120/filesystems/diagfs/etc/runanacapa new file mode 100755 index 0000000..794dd22 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/runanacapa @@ -0,0 +1,27 @@ +#!/bin/sh +while [ -f /var/run/waitforip ]; do + sleep 1 +done +if [ -f /var/run/upgradeinfo ]; then + mkdir /tmp + rm /jffs/upgrade_tmp_prev.log + mv /tmp/upgrade.log /jffs/upgrade_tmp_prev.log + echo Running upgrade ... + /bin/upgrade >> /tmp/upgrade.log 2>&1 + rr=$? + echo RESULT = $rr >> /tmp/upgrade.log + rm /var/run/upgradeinfo + exit $rr +fi +for X in /tmp/smb/* +do + if [ -d "$X" ] + then + umount "$X" + rmdir "$X" + fi +done +while [ -f /var/run/stopanacapa ]; do + sleep 10 +done +exec /opt/bin/anacapactl start-demo diff --git a/devices/ZP120/filesystems/diagfs/etc/scripts/domnt.sh b/devices/ZP120/filesystems/diagfs/etc/scripts/domnt.sh new file mode 100755 index 0000000..9071e82 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/scripts/domnt.sh @@ -0,0 +1,46 @@ +#!/bin/sh + +# default settings +IP="" +HOME="/home" + +# parse if called with one command line argument +if [ "$#" = "1" ]; then + IP="$1" +fi + +# parse if called with two command line arguments +if [ "$#" = "2" ]; then + IP="$1" + HOME="$2" +fi + +if [ "$IP" = "" ]; then + # argument 1 is required and argument 2 is optional + echo "usage: $0 [home_absolute_path]" + echo " examples: $0 10.20.32.237" + echo " $0 10.20.1.15 /home" + exit 1 +fi + +if [ ! -f /jffs/sunrpc.o ]; then + ARCH=`uname -m` + if [ "$ARCH" = "sh4" ]; then + wget -O /jffs/sunrpc.o http://10.20.32.240/~build/nfs/sh4/sunrpc.o + wget -O /jffs/lockd.o http://10.20.32.240/~build/nfs/sh4/lockd.o + wget -O /jffs/nfs.o http://10.20.32.240/~build/nfs/sh4/nfs.o + elif [ "$ARCH" = "ppc" ]; then + wget -O /jffs/sunrpc.o http://10.20.32.240/~build/nfs/ppc/sunrpc.o + wget -O /jffs/lockd.o http://10.20.32.240/~build/nfs/ppc/lockd.o + wget -O /jffs/nfs.o http://10.20.32.240/~build/nfs/ppc/nfs.o + else + echo "error: modules have not been built for the '${ARCH}' architecture" + exit 1 + fi +fi + +insmod /jffs/sunrpc.o +insmod /jffs/lockd.o +insmod /jffs/nfs.o + +/bin/mount -t nfs -o nolock,soft,vers=2 ${IP}:"${HOME}" /mnt diff --git a/devices/ZP120/filesystems/diagfs/etc/scripts/run_sshd.sh b/devices/ZP120/filesystems/diagfs/etc/scripts/run_sshd.sh new file mode 100755 index 0000000..698d51c --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/scripts/run_sshd.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# Copyright (c) 2019, Sonos, Inc. All rights reserved. + +exec /usr/sbin/telnetd diff --git a/devices/ZP120/filesystems/diagfs/etc/services b/devices/ZP120/filesystems/diagfs/etc/services new file mode 100644 index 0000000..2a4c59d --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/services @@ -0,0 +1,407 @@ +# /etc/services: +# $Id: services,v 1.4 1997/05/20 19:41:21 tobias Exp $ +# +# Network services, Internet style +# +# Note that it is presently the policy of IANA to assign a single well-known +# port number for both TCP and UDP; hence, most entries here have two entries +# even if the protocol doesn't support UDP operations. +# Updated from RFC 1700, ``Assigned Numbers'' (October 1994). Not all ports +# are included, only the more common ones. + +tcpmux 1/tcp # TCP port service multiplexer +echo 7/tcp +echo 7/udp +discard 9/tcp sink null +discard 9/udp sink null +systat 11/tcp users +daytime 13/tcp +daytime 13/udp +netstat 15/tcp +qotd 17/tcp quote +msp 18/tcp # message send protocol +msp 18/udp # message send protocol +chargen 19/tcp ttytst source +chargen 19/udp ttytst source +ftp-data 20/tcp +ftp 21/tcp +fsp 21/udp fspd +ssh 22/tcp # SSH Remote Login Protocol +ssh 22/udp # SSH Remote Login Protocol +telnet 23/tcp +# 24 - private +smtp 25/tcp mail +# 26 - unassigned +time 37/tcp timserver +time 37/udp timserver +rlp 39/udp resource # resource location +nameserver 42/tcp name # IEN 116 +whois 43/tcp nicname +re-mail-ck 50/tcp # Remote Mail Checking Protocol +re-mail-ck 50/udp # Remote Mail Checking Protocol +domain 53/tcp nameserver # name-domain server +domain 53/udp nameserver +mtp 57/tcp # deprecated +bootps 67/tcp # BOOTP server +bootps 67/udp +bootpc 68/tcp # BOOTP client +bootpc 68/udp +tftp 69/udp +gopher 70/tcp # Internet Gopher +gopher 70/udp +rje 77/tcp netrjs +finger 79/tcp +www 80/tcp http # WorldWideWeb HTTP +www 80/udp # HyperText Transfer Protocol +link 87/tcp ttylink +kerberos 88/tcp kerberos5 krb5 kerberos-sec # Kerberos v5 +kerberos 88/udp kerberos5 krb5 kerberos-sec # Kerberos v5 +supdup 95/tcp +# 100 - reserved +hostnames 101/tcp hostname # usually from sri-nic +iso-tsap 102/tcp tsap # part of ISODE. +csnet-ns 105/tcp cso-ns # also used by CSO name server +csnet-ns 105/udp cso-ns +# unfortunately the poppassd (Eudora) uses a port which has already +# been assigned to a different service. We list the poppassd as an +# alias here. This should work for programs asking for this service. +# (due to a bug in inetd the 3com-tsmux line is disabled) +#3com-tsmux 106/tcp poppassd +#3com-tsmux 106/udp poppassd +rtelnet 107/tcp # Remote Telnet +rtelnet 107/udp +pop2 109/tcp postoffice pop-2 # POP version 2 +pop2 109/udp pop-2 +pop3 110/tcp pop-3 # POP version 3 +pop3 110/udp pop-3 +sunrpc 111/tcp portmapper # RPC 4.0 portmapper TCP +sunrpc 111/udp portmapper # RPC 4.0 portmapper UDP +auth 113/tcp authentication tap ident +sftp 115/tcp +uucp-path 117/tcp +nntp 119/tcp readnews untp # USENET News Transfer Protocol +ntp 123/tcp +ntp 123/udp # Network Time Protocol +netbios-ns 137/tcp # NETBIOS Name Service +netbios-ns 137/udp +netbios-dgm 138/tcp # NETBIOS Datagram Service +netbios-dgm 138/udp +netbios-ssn 139/tcp # NETBIOS session service +netbios-ssn 139/udp +imap2 143/tcp imap # Interim Mail Access Proto v2 +imap2 143/udp imap +snmp 161/udp # Simple Net Mgmt Proto +snmp-trap 162/udp snmptrap # Traps for SNMP +cmip-man 163/tcp # ISO mgmt over IP (CMOT) +cmip-man 163/udp +cmip-agent 164/tcp +cmip-agent 164/udp +mailq 174/tcp # Mailer transport queue for Zmailer +mailq 174/udp # Mailer transport queue for Zmailer +xdmcp 177/tcp # X Display Mgr. Control Proto +xdmcp 177/udp +nextstep 178/tcp NeXTStep NextStep # NeXTStep window +nextstep 178/udp NeXTStep NextStep # server +bgp 179/tcp # Border Gateway Proto. +bgp 179/udp +prospero 191/tcp # Cliff Neuman's Prospero +prospero 191/udp +irc 194/tcp # Internet Relay Chat +irc 194/udp +smux 199/tcp # SNMP Unix Multiplexer +smux 199/udp +at-rtmp 201/tcp # AppleTalk routing +at-rtmp 201/udp +at-nbp 202/tcp # AppleTalk name binding +at-nbp 202/udp +at-echo 204/tcp # AppleTalk echo +at-echo 204/udp +at-zis 206/tcp # AppleTalk zone information +at-zis 206/udp +qmtp 209/tcp # The Quick Mail Transfer Protocol +qmtp 209/udp # The Quick Mail Transfer Protocol +z3950 210/tcp wais # NISO Z39.50 database +z3950 210/udp wais +ipx 213/tcp # IPX +ipx 213/udp +imap3 220/tcp # Interactive Mail Access +imap3 220/udp # Protocol v3 +rpc2portmap 369/tcp +rpc2portmap 369/udp # Coda portmapper +codaauth2 370/tcp +codaauth2 370/udp # Coda authentication server +ulistserv 372/tcp # UNIX Listserv +ulistserv 372/udp +ldap 389/tcp # Lightweight Directory Access Protocol +ldap 389/udp # Lightweight Directory Access Protocol +https 443/tcp # MCom +https 443/udp # MCom +snpp 444/tcp # Simple Network Paging Protocol +snpp 444/udp # Simple Network Paging Protocol +saft 487/tcp # Simple Asynchronous File Transfer +saft 487/udp # Simple Asynchronous File Transfer +npmp-local 610/tcp dqs313_qmaster # npmp-local / DQS +npmp-local 610/udp dqs313_qmaster # npmp-local / DQS +npmp-gui 611/tcp dqs313_execd # npmp-gui / DQS +npmp-gui 611/udp dqs313_execd # npmp-gui / DQS +hmmp-ind 612/tcp dqs313_intercell# HMMP Indication / DQS +hmmp-ind 612/udp dqs313_intercell# HMMP Indication / DQS +ipp 631/tcp # Internet Printing Protocol +ipp 631/udp # Internet Printing Protocol +# +# UNIX specific services +# +exec 512/tcp +biff 512/udp comsat +login 513/tcp +who 513/udp whod +shell 514/tcp cmd # no passwords used +syslog 514/udp +printer 515/tcp spooler # line printer spooler +talk 517/udp +ntalk 518/udp +route 520/udp router routed # RIP +timed 525/udp timeserver +tempo 526/tcp newdate +courier 530/tcp rpc +conference 531/tcp chat +netnews 532/tcp readnews +netwall 533/udp # -for emergency broadcasts +gdomap 538/tcp # GNUstep distributed objects +gdomap 538/udp # GNUstep distributed objects +uucp 540/tcp uucpd # uucp daemon +afpovertcp 548/tcp # AFP over TCP +afpovertcp 548/udp # AFP over TCP +remotefs 556/tcp rfs_server rfs # Brunhoff remote filesystem +klogin 543/tcp # Kerberized `rlogin' (v5) +kshell 544/tcp krcmd # Kerberized `rsh' (v5) +nntps 563/tcp snntp # NNTP over SSL +nntps 563/udp snntp # NNTP over SSL +ldaps 636/tcp # LDAP over SSL +ldaps 636/udp # LDAP over SSL +kerberos-adm 749/tcp # Kerberos `kadmin' (v5) +# +webster 765/tcp # Network dictionary +webster 765/udp +rsync 873/tcp # rsync +rsync 873/udp # rsync +imaps 993/tcp # IMAP over SSL +imaps 993/udp # IMAP over SSL +ircs 994/tcp # IRC over SSL +ircs 994/udp # IRC over SSL +pop3s 995/tcp # POP-3 over SSL +pop3s 995/udp # POP-3 over SSL +# +# From ``Assigned Numbers'': +# +#> The Registered Ports are not controlled by the IANA and on most systems +#> can be used by ordinary user processes or programs executed by ordinary +#> users. +# +#> Ports are used in the TCP [45,106] to name the ends of logical +#> connections which carry long term conversations. For the purpose of +#> providing services to unknown callers, a service contact port is +#> defined. This list specifies the port used by the server process as its +#> contact port. While the IANA can not control uses of these ports it +#> does register or list uses of these ports as a convienence to the +#> community. +# +socks 1080/tcp # socks proxy server +socks 1080/udp # socks proxy server +lotusnote 1352/tcp lotusnotes # Lotus Note +lotusnote 1352/udp lotusnotes # Lotus Note +ingreslock 1524/tcp +ingreslock 1524/udp +prospero-np 1525/tcp # Prospero non-privileged +prospero-np 1525/udp +datametrics 1645/tcp old-radius # datametrics / old radius entry +datametrics 1645/udp old-radius # datametrics / old radius entry +sa-msg-port 1646/tcp old-radacct # sa-msg-port / old radacct entry +sa-msg-port 1646/udp old-radacct # sa-msg-port / old radacct entry +radius 1812/tcp # Radius +radius 1812/udp # Radius +radacct 1813/tcp # Radius Accounting +radacct 1813/udp # Radius Accounting +rtcm-sc104 2101/tcp # RTCM SC-104 IANA 1/29/99 +rtcm-sc104 2101/udp # RTCM SC-104 IANA 1/29/99 +cvspserver 2401/tcp # CVS client/server operations +cvspserver 2401/udp # CVS client/server operations +venus 2430/tcp # codacon port +venus 2430/udp # Venus callback/wbc interface +venus-se 2431/tcp # tcp side effects +venus-se 2431/udp # udp sftp side effect +codasrv 2432/tcp # not used +codasrv 2432/udp # server port +codasrv-se 2433/tcp # tcp side effects +codasrv-se 2433/udp # udp sftp side effect +dict 2628/tcp # Dictionary server +dict 2628/udp # Dictionary server +gds_db 3050/tcp # InterBase server +gds_db 3050/udp # InterBase server +icpv2 3130/tcp icp # Internet Cache Protocol (Squid) +icpv2 3130/udp icp # Internet Cache Protocol (Squid) +mysql 3306/tcp # MySQL +mysql 3306/udp # MySQL +rfe 5002/tcp # Radio Free Ethernet +rfe 5002/udp # Actually uses UDP only +cfengine 5308/tcp # CFengine +cfengine 5308/udp # CFengine +x11 6000/tcp x11-0 # X windows system +x11 6000/udp x11-0 # X windows system +x11-1 6001/tcp # X windows system +x11-1 6001/udp # X windows system +x11-2 6002/tcp # X windows system +x11-2 6002/udp # X windows system +x11-3 6003/tcp # X windows system +x11-3 6003/udp # X windows system +x11-4 6004/tcp # X windows system +x11-4 6004/udp # X windows system +x11-5 6005/tcp # X windows system +x11-5 6005/udp # X windows system +x11-6 6006/tcp # X windows system +x11-6 6006/udp # X windows system +x11-7 6007/tcp # X windows system +x11-7 6007/udp # X windows system +afs3-fileserver 7000/tcp bbs # file server itself +afs3-fileserver 7000/udp bbs # file server itself +afs3-callback 7001/tcp # callbacks to cache managers +afs3-callback 7001/udp # callbacks to cache managers +afs3-prserver 7002/tcp # users & groups database +afs3-prserver 7002/udp # users & groups database +afs3-vlserver 7003/tcp # volume location database +afs3-vlserver 7003/udp # volume location database +afs3-kaserver 7004/tcp # AFS/Kerberos authentication +afs3-kaserver 7004/udp # AFS/Kerberos authentication +afs3-volser 7005/tcp # volume managment server +afs3-volser 7005/udp # volume managment server +afs3-errors 7006/tcp # error interpretation service +afs3-errors 7006/udp # error interpretation service +afs3-bos 7007/tcp # basic overseer process +afs3-bos 7007/udp # basic overseer process +afs3-update 7008/tcp # server-to-server updater +afs3-update 7008/udp # server-to-server updater +afs3-rmtsys 7009/tcp # remote cache manager service +afs3-rmtsys 7009/udp # remote cache manager service +font-service 7100/tcp xfs # X Font Service +font-service 7100/udp xfs # X Font Service +wnn6 22273/tcp # wnn6 +wnn6 22273/udp # wnn6 + +#========================================================================= +# The remaining port numbers are not as allocated by IANA. +# +# Kerberos (Project Athena/MIT) services +# Note that these are for Kerberos v4, and are unofficial. Sites running +# v4 should uncomment these and comment out the v5 entries above. +# +kerberos4 750/udp kerberos-iv kdc # Kerberos (server) udp +kerberos4 750/tcp kerberos-iv kdc # Kerberos (server) tcp +kerberos_master 751/udp # Kerberos authentication +kerberos_master 751/tcp # Kerberos authentication +passwd_server 752/udp # Kerberos passwd server +krb_prop 754/tcp # Kerberos slave propagation +krbupdate 760/tcp kreg # Kerberos registration +kpasswd 761/tcp kpwd # Kerberos "passwd" +swat 901/tcp # swat +kpop 1109/tcp # Pop with Kerberos +knetd 2053/tcp # Kerberos de-multiplexor +zephyr-srv 2102/udp # Zephyr server +zephyr-clt 2103/udp # Zephyr serv-hm connection +zephyr-hm 2104/udp # Zephyr hostmanager +eklogin 2105/tcp # Kerberos encrypted rlogin +# Hmmm. Are we using Kv4 or Kv5 now? Worrying. +# The following is probably Kerberos v5 --- ajt@debian.org (11/02/2000) +kx 2111/tcp # X over Kerberos +# +# Unofficial but necessary (for NetBSD) services +# +supfilesrv 871/tcp # SUP server +supfiledbg 1127/tcp # SUP debugging +# +# Datagram Delivery Protocol services +# +rtmp 1/ddp # Routing Table Maintenance Protocol +nbp 2/ddp # Name Binding Protocol +echo 4/ddp # AppleTalk Echo Protocol +zip 6/ddp # Zone Information Protocol +# +# Services added for the Debian GNU/Linux distribution +# +linuxconf 98/tcp # LinuxConf +poppassd 106/tcp # Eudora +poppassd 106/udp # Eudora +ssmtp 465/tcp smtps # SMTP over SSL +nqs 607/tcp # Network Queuing system +moira_db 775/tcp # Moira database +moira_update 777/tcp # Moira update protocol. +moira_ureg 779/udp # Moira user registration. +omirr 808/tcp omirrd # online mirror +omirr 808/udp omirrd # online mirror +customs 1001/tcp # pmake customs server +customs 1001/udp # pmake customs server +rmiregistry 1099/tcp # Java RMI Registry +skkserv 1178/tcp # skk jisho server port +rmtcfg 1236/tcp # Gracilis Packeten remote config server +xtel 1313/tcp # french minitel +xtelw 1314/tcp # french minitel +support 1529/tcp # GNATS +cfinger 2003/tcp # GNU Finger +ndtp 2010/tcp # Network dictionary transfer protocol +ninstall 2150/tcp # ninstall service +ninstall 2150/udp # ninstall service +zebrasrv 2600/tcp # zebra service +zebra 2601/tcp # zebra vty +ripd 2602/tcp # RIPd vty +ripngd 2603/tcp # RIPngd vty +ospfd 2604/tcp # OSPFd vty +bgpd 2605/tcp # BGPd vty +ospf6d 2606/tcp # OSPF6d vty +afbackup 2988/tcp # Afbackup system +afbackup 2988/udp # Afbackup system +afmbackup 2989/tcp # Afmbackup system +afmbackup 2989/udp # Afmbackup system +xtell 4224/tcp # xtell server +fax 4557/tcp # FAX transmission service (old) +hylafax 4559/tcp # HylaFAX client-server protocol (new) +pcrd 5151/tcp # PCR-1000 Daemon +noclog 5354/tcp # noclogd with TCP (nocol) +noclog 5354/udp # noclogd with UDP (nocol) +hostmon 5355/tcp # hostmon uses TCP (nocol) +hostmon 5355/udp # hostmon uses UDP (nocol) +postgres 5432/tcp # POSTGRES +postgres 5432/udp # POSTGRES +mrtd 5674/tcp # MRT Routing Daemon +bgpsim 5675/tcp # MRT Routing Simulator +canna 5680/tcp # cannaserver +sane 6566/tcp saned # SANE network scanner daemon +ircd 6667/tcp # Internet Relay Chat +ircd 6667/udp # Internet Relay Chat +ircd-dalnet 7000/tcp # IRC - Dalnet +ircd-dalnet 7000/udp # IRC - Dalnet +webcache 8080/tcp # WWW caching service +webcache 8080/udp # WWW caching service +tproxy 8081/tcp # Transparent Proxy +tproxy 8081/udp # Transparent Proxy +omniorb 8088/tcp # OmniORB +omniorb 8088/udp # OmniORB +mandelspawn 9359/udp mandelbrot # network mandelbrot +amanda 10080/udp # amanda backup services +kamanda 10081/tcp # amanda backup services (Kerberos) +kamanda 10081/udp # amanda backup services (Kerberos) +amandaidx 10082/tcp # amanda backup services +amidxtape 10083/tcp # amanda backup services +isdnlog 20011/tcp # isdn logging system +isdnlog 20011/udp # isdn logging system +vboxd 20012/tcp # voice box system +vboxd 20012/udp # voice box system +binkp 24554/tcp # Binkley +binkp 24554/udp # Binkley +asp 27374/tcp # Address Search Protocol +asp 27374/udp # Address Search Protocol +tfido 60177/tcp # Ifmail +tfido 60177/udp # Ifmail +fido 60179/tcp # Ifmail +fido 60179/udp # Ifmail + +# Local services + diff --git a/devices/ZP120/filesystems/diagfs/etc/shells b/devices/ZP120/filesystems/diagfs/etc/shells new file mode 100644 index 0000000..14e9376 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/shells @@ -0,0 +1,5 @@ +/bin/bash +/bin/sh +/bin/ash +/bin/ash.static +/bin/sash diff --git a/devices/ZP120/filesystems/diagfs/etc/syslog.conf b/devices/ZP120/filesystems/diagfs/etc/syslog.conf new file mode 100644 index 0000000..0955d4b --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/etc/syslog.conf @@ -0,0 +1,71 @@ +# /etc/syslog.conf Configuration file for syslogd. +# +# For more information see syslog.conf(5) +# manpage. + +# +# First some standard logfiles. Log by facility. +# + +auth,authpriv.* /var/log/auth.log +*.*;auth,authpriv.none -/var/log/syslog +#cron.* /var/log/cron.log +daemon.* -/var/log/daemon.log +kern.* -/var/log/kern.log +lpr.* -/var/log/lpr.log +mail.* /var/log/mail.log +user.* -/var/log/user.log +uucp.* -/var/log/uucp.log + +# +# Logging for the mail system. Split it up so that +# it is easy to write scripts to parse these files. +# +mail.info -/var/log/mail.info +mail.warn -/var/log/mail.warn +mail.err /var/log/mail.err + +# Logging for INN news system +# +#news.crit /var/log/news/news.crit +#news.err /var/log/news/news.err +#news.notice -/var/log/news/news.notice + +# +# Some `catch-all' logfiles. +# +*.=debug;\ + auth,authpriv.none;\ + news.none;mail.none -/var/log/debug +*.=info;*.=notice;*.=warn;\ + auth,authpriv.none;\ + cron,daemon.none;\ + mail,news.none -/var/log/messages + +# +# Emergencies are sent to everybody logged in. +# +*.emerg * + +# +# I like to have messages displayed on the console, but only on a virtual +# console I usually leave idle. +# +#daemon,mail.*;\ +# news.=crit;news.=err;news.=notice;\ +# *.=debug;*.=info;\ +# *.=notice;*.=warn /dev/tty8 + +# The named pipe /dev/xconsole is for the `xconsole' utility. To use it, +# you must invoke `xconsole' with the `-file' option: +# +# $ xconsole -file /dev/xconsole [...] +# +# NOTE: adjust the list below, or you'll go crazy if you have a reasonably +# busy site.. +# +#daemon.*;mail.*;\ +# news.crit;news.err;news.notice;\ +# *.=debug;*.=info;\ +# *.=notice;*.=warn |/dev/xconsole + diff --git a/devices/ZP120/filesystems/diagfs/modules/audiodev.o b/devices/ZP120/filesystems/diagfs/modules/audiodev.o new file mode 100644 index 0000000..2cb9f01 Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/modules/audiodev.o differ diff --git a/devices/ZP120/filesystems/diagfs/modules/chk_driver.o b/devices/ZP120/filesystems/diagfs/modules/chk_driver.o new file mode 100644 index 0000000..3084c0f Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/modules/chk_driver.o differ diff --git a/devices/ZP120/filesystems/diagfs/opt/bin/anacapactl b/devices/ZP120/filesystems/diagfs/opt/bin/anacapactl new file mode 100755 index 0000000..1e0b12a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/bin/anacapactl @@ -0,0 +1,122 @@ +#! /bin/sh +anacapaHome=/opt +anacapaPidFile=$anacapaHome/log/anacapa.pid +anacapaBin="$anacapaHome/bin/anacapad" +anacapaStart="$anacapaBin -c $anacapaHome/conf/anacapa.conf" + +PATH=/usr/bin:/bin:/usr/sbin:/sbin:$anacapaHome/bin +export PATH +LD_LIBRARY_PATH=$anacapaHome/lib +export LD_LIBRARY_PATH +ANACAPA_LIBDIR=$anacapaHome/lib +export ANACAPA_LIBDIR + +arch=`uname -m` +# +# CheckRunning +# Check to see if Anacapa is running, and if so, set the "pid" var. +# +CheckRunning() { + pid="" + if [ -f $anacapaPidFile ]; then + pid=`cat $anacapaPidFile 2> /dev/null` + fi + + if [ -n "$pid" ]; then + kill -0 $pid 2> /dev/null + if [ $? != 0 ]; then + rm -f $anacapaPidFile + pid="" + fi + else + rm -f $anacapaPidFile + pid="" + fi +} + +# +# Stop +# Stop the anacapa and wait until the primary process is dead. +# +Stop() { + kill -15 $pid + CheckRunning + while [ -n "$pid" ]; do + sleep 1 + CheckRunning + done +} + +CheckRunning + +# +# Hup +# Hup the anacapa +# +Hup() { + kill -HUP $pid +} + +case "$1" in + 'start') + if [ -n "$pid" ]; then + echo "anacapad is already running (pid $pid)" + exit 1 + fi + if [ "$arch" = "sh4" ]; then + /sbin/gdbserver 10.10.1.237:1234 $anacapaStart -d 10 + else + gdb $SONOS_GDB_ARGS --args $anacapaStart -d 10 + fi + exit $? + ;; + + 'start-demo') + if [ -n "$pid" ]; then + echo "anacapad is already running (pid $pid)" + exit 1 + fi + + exec $anacapaStart + ;; + + 'restart') + if [ -n "$pid" ]; then + Stop + fi + if [ "$arch" = "sh4" ]; then + /sbin/gdbserver 10.10.1.237:1234 $anacapaStart -d 10 + else + gdb $SONOS_GDB_ARGS --args $anacapaStart -d 10 + fi + exit $? + ;; + + 'restart-demo') + if [ -n "$pid" ]; then + Stop + fi + + $anacapaStart + exit $? + ;; + + 'stop') + if [ -n "$pid" ]; then + Stop + fi + exit 0 + ;; + + 'hup') + if [ -n "$pid" ]; then + Hup + fi + exit 0 + ;; + + *) + echo "Usage: $0 { start | start-demo | stop | restart | restart-demo | hup }" + exit 1 + ;; +esac diff --git a/devices/ZP120/filesystems/diagfs/opt/bin/anacapad b/devices/ZP120/filesystems/diagfs/opt/bin/anacapad new file mode 100755 index 0000000..05c90ee Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/opt/bin/anacapad differ diff --git a/devices/ZP120/filesystems/diagfs/opt/buzzers/0.mp3 b/devices/ZP120/filesystems/diagfs/opt/buzzers/0.mp3 new file mode 100644 index 0000000..ff1c25e Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/opt/buzzers/0.mp3 differ diff --git a/devices/ZP120/filesystems/diagfs/opt/buzzers/1.mp3 b/devices/ZP120/filesystems/diagfs/opt/buzzers/1.mp3 new file mode 100644 index 0000000..afa19fb Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/opt/buzzers/1.mp3 differ diff --git a/devices/ZP120/filesystems/diagfs/opt/buzzers/100.mp3 b/devices/ZP120/filesystems/diagfs/opt/buzzers/100.mp3 new file mode 100644 index 0000000..b64cb65 Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/opt/buzzers/100.mp3 differ diff --git a/devices/ZP120/filesystems/diagfs/opt/conf/anacapa.conf b/devices/ZP120/filesystems/diagfs/opt/conf/anacapa.conf new file mode 100644 index 0000000..5378f1d --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/conf/anacapa.conf @@ -0,0 +1,69 @@ +# Anacapa Web Server configuration file + +# Server TCP Port for HTTP operation +Port 1400 + +# Port for HTTPS traffic (0 for disabled) +SSLPort 1443 + +# Port for HTTPS traffic for household members only (0 for disabled) +SecureHHSSLPort 1843 + +# The Server Root (UNIX systems style) +ServerRoot /opt + +# The Path option specifies the web files path. +Path htdocs + +# The Default option contains the name of the files the server should +# look for when only a path is given (e.g. http://myserver/info/). +Default index.html + +# The TimeOut option tells the server how much seconds to wait for +# an idle connection before closing it. +TimeOut 10 + +# The MimeTypes option specifies the location of the file +# containing the mapping of MIME types and files extensions +MimeTypes conf/mime.types + +# The path of the diagnostic file +DiagFile log/anacapa.trace + +# The default max level for diagnostics logged to DiagFile +DiagLevel default=1 + +# Max_Conn is the maximum number of simultaneous connections +# This should be greater than NumThreads to support persistent +# connections. The difference is the number of simultaneous +# persistent connections supported. +MaxConn 8 + +# NumThreads is the number of anacapa worker threads. +# Previously this was equal to MaxConn but now MaxConn needs to be +# greater than NumThreads to support persistent connections +NumThreads 4 + +# The file where the pid of the server is logged (UNIX specific) +PidFile log/anacapa.pid + +# Rincon-specific configuration settings +# JFFSRoot /tmp/jffs_1400 +# ZPMusicServicesBackstop ../../../../cc/anacapa/anacapa/pkg/htdocs/xml/musicservices.xml +# ZPTimeZonesBackstop ../../../../cc/anacapa/anacapa/pkg/htdocs/xml/timezones.xml + +# Override the default Model[.Submodel] of the ZP emulator. +#HackModel 8.1 + +# Special Logging for direct control +DiagFile log/anacapa.dc.trace +DiagLevel main=0,muse=3,cloudqueue=3,spot=3,spot_abr=3 +DiagMin 16384 +DiagMax 32768 + + + +DiagFile log/anacapa.snf.trace +DiagLevel main=0,advert=3,upnpeventing=3,ana_http=2,arpchecker=3,association=5,assoctracker=3 +DiagMin 8192 +DiagMax 16384 diff --git a/devices/ZP120/filesystems/diagfs/opt/conf/mime.types b/devices/ZP120/filesystems/diagfs/opt/conf/mime.types new file mode 100644 index 0000000..0bf5810 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/conf/mime.types @@ -0,0 +1,8 @@ +# MIME type Extension +text/html htm +text/html html +text/xml xml +text/xml xsl +text/css css +text/javascript js +image/png png diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/img/icon-S5.png b/devices/ZP120/filesystems/diagfs/opt/htdocs/img/icon-S5.png new file mode 100644 index 0000000..8cf96c7 Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/opt/htdocs/img/icon-S5.png differ diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/img/icon-ZP120.png b/devices/ZP120/filesystems/diagfs/opt/htdocs/img/icon-ZP120.png new file mode 100644 index 0000000..30524bd Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/opt/htdocs/img/icon-ZP120.png differ diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/img/icon-ZP90.png b/devices/ZP120/filesystems/diagfs/opt/htdocs/img/icon-ZP90.png new file mode 100644 index 0000000..2b5fb58 Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/opt/htdocs/img/icon-ZP90.png differ diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/pub b/devices/ZP120/filesystems/diagfs/opt/htdocs/pub new file mode 120000 index 0000000..0c17009 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/pub @@ -0,0 +1 @@ +/tmp/pub \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/review.js b/devices/ZP120/filesystems/diagfs/opt/htdocs/review.js new file mode 100644 index 0000000..d57d044 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/review.js @@ -0,0 +1,448 @@ +function trimAll( strValue ) { + var objRegExp = /^(\s*)$/; + + //check for all spaces + if(objRegExp.test(strValue)) { + strValue = strValue.replace(objRegExp, ''); + if( strValue.length == 0) + return strValue; + } + + //check for leading & trailing spaces + objRegExp = /^(\s*)([\W\w]*)(\b\s*$)/; + if(objRegExp.test(strValue)) { + //remove leading and trailing whitespace characters + strValue = strValue.replace(objRegExp, '$2'); + } + return strValue; +} + +var strengthData = new Array(); +var macAddrs = new Array(); +var macAddrsToZoneNames = new Array(); + +function finishDrawTable(tbodyID) { + var th, tr, td, txt, br; + var zp,nf,ofdm; + tbody = document.getElementById(tbodyID); + // create holder for accumulated tbody elements and text nodes + var frag = document.createDocumentFragment(); + // + // Make column headings + // + tr = document.createElement("tr"); + th = document.createElement("th"); tr.appendChild(th); + for (var i = 0; i < macAddrs.length; i++) { + if(macAddrs[i] != "eth0" && macAddrs[i] != "eth1") + { + th = document.createElement("th"); + txt = document.createTextNode("Strength to"); th.appendChild(txt); + br = document.createElement("br"); th.appendChild(br); + txt = document.createTextNode(macAddrs[i]); th.appendChild(txt); + br = document.createElement("br"); th.appendChild(br); + txt = document.createTextNode(macAddrsToZoneNames[macAddrs[i]]); th.appendChild(txt); + tr.appendChild(th); + } + } + frag.appendChild(tr); + // + // loop through data source + // + for (var i = 0; i < strengthData.length; i++) { + var sd = strengthData[i]; + tr = document.createElement("tr"); + + td = document.createElement("td"); + td.setAttribute("class", "ctr"); + + txt = document.createTextNode(sd.macAddr); td.appendChild(txt); + br = document.createElement("br"); td.appendChild(br); + + txt = document.createTextNode(macAddrsToZoneNames[sd.macAddr]); td.appendChild(txt); + br = document.createElement("br"); td.appendChild(br); + + for(var j = 0; j < sd.destinations.length; j++) + { + if(sd.pathCost == 0) + { + txt = document.createTextNode("Root Bridge"); td.appendChild(txt); + break; + } + else if(parseInt(sd.pathCost) == (parseInt(sd.destinations[j].pathCost) + parseInt(sd.destinations[j].designatedCost))) + { + if(sd.destinations[j].designatedCost == 0) + { + txt = document.createTextNode("Secondary Node"); td.appendChild(txt); + } + else + { + txt = document.createTextNode("Tertiary Node"); td.appendChild(txt); + } + break; + } + } + + br = document.createElement("br"); td.appendChild(br); + + txt = document.createTextNode(sd.noiseFloor); td.appendChild(txt); + br = document.createElement("br"); td.appendChild(br); + + txt = document.createTextNode(sd.weakSignal); td.appendChild(txt); + +//added color for ZonePlayer status + if(sd.noiseFloor && sd.weakSignal) + { + if( sd.noiseFloor.match( /Noise Floor: -(\d+), -(\d+), -(\d+)/ )) + nf = (parseInt(RegExp.$1) + parseInt(RegExp.$2) + parseInt(RegExp.$3))/3; + else if( sd.noiseFloor.match( /Noise Floor: -(\d+)/ )) + nf = RegExp.$1; + + if( sd.weakSignal.match( /OFDM Weak signal level: (\d+)/ )) + ofdm = RegExp.$1; + else if( sd.weakSignal.match( /OFDM ANI level: (\d+)/ )) + ofdm = (12 - parseInt(RegExp.$1)) / 2; // Map 0-9 to 6->1.5 + + if( nf > 94 && ofdm > 4 ) + td.style.background = "rgb(32,190,32)"; + else if( nf > 89 && ofdm > 3 ) + td.style.background = "rgb(255,255,32)"; + else if( nf > 84 && ofdm > 2 ) + td.style.background = "rgb(255,159,32)"; + else + td.style.background = "rgb(255,32,32)"; + } + tr.appendChild(td); + + for (var j = 0; j < macAddrs.length; j++) { + if(macAddrs[j] != "eth0" && macAddrs[j] != "eth1") + { + td = document.createElement("td"); + for (var k = 0; k < sd.destinations.length; k++) { + var dst = sd.destinations[k]; + if (dst.addr == macAddrs[j]) { + +//added color for Connection status + var temp=0,count=0; + var dstAvg = new Array(); + dstAvg[0] = dst.inA; + dstAvg[1] = dst.inB; + dstAvg[2] = dst.outA; + dstAvg[3] = dst.outB; + + for (var l = 0; l < dstAvg.length; l++) + { + if(dstAvg[l]) + { + temp += parseInt(dstAvg[l]); + count++; + } + } + + temp = temp/count; + + txt = document.createTextNode("Inbound: " + dst.inA + " " + dst.inB); + td.appendChild(txt); + br = document.createElement("br"); td.appendChild(br); + + txt = document.createTextNode("Outbound: " + dst.outA + " " + dst.outB); + td.appendChild(txt); + br = document.createElement("br"); td.appendChild(br); + + txt = document.createTextNode("STP state: " + dst.stpState); + if(dst.connects) + { + if(temp > 44) + td.style.background = "rgb(32,190,32)"; + else if(temp > 29) + td.style.background = "rgb(255,255,32)"; + else if(temp > 17) + td.style.background = "rgb(255,159,32)"; + else + td.style.background = "rgb(255,32,32)"; + } + else + { + td.style.background = "rgb(224,224,224)"; + } + + td.appendChild(txt); + + break; + } + } + tr.appendChild(td); + } + } + + frag.appendChild(tr); + } + if (!tbody.appendChild(frag)) { + alert("This browser doesn't support dynamic tables."); + } +} + +function addMacAddr(addr) { + for (var i = 0; i < macAddrs.length; i++) { + if (macAddrs[i] == addr) return; + } + macAddrs.push(addr); +} + +function sortByMACAddr(a, b) { + var x = a.macAddr; + var y = b.macAddr; + return ((x < y) ? -1 : ((x > y) ? 1 : 0)); +} + +function parseStpData(stpData, nodeDataObj) { + + var lines = stpData.value.split('\n'); + for (var l = 0; l < lines.length; l++) { + var words = trimAll(lines[l]).split(/\s+/); + if (words.length > 0) { + if (words[0] == "ath0" || words[0] == "eth0" || words[0] == "eth1") { + // + // This begins a new node section + // + if(words[3] == "tunnel") + { + toMAC = words[5]; // MAC address of destination + rSTP = words[10].replace(/[,\)]/g, ''); // remote STP state + } + else + { + toMAC = words[0]; + rSTP = words[0]; + } + // + // Find an existing destination object, or make a new one if it + // isn't there yet + // + var toNode = null; + for (var i = 0; i < nodeDataObj.destinations.length; i++) { + if (nodeDataObj.destinations[i].addr == toMAC) { + toNode = nodeDataObj.destinations[i]; + toNode.remoteState = rSTP; + break; + } + } + if (toNode == null) { + toNode = new Object; + toNode.addr = toMAC; + toNode.remoteState = rSTP; + nodeDataObj.destinations.push(toNode); + } + // + // Now, parse the rest of the lines in this section. The + // section is deliniated by a blank line. + // + while (++l < lines.length) { + var line = trimAll(lines[l]); + if (line.length == 0) break; + words = line.split(/\s+/); + if (words[0] == "port") { + toNode.portID = words[2]; + toNode.stpState = words[4]; + } else if (words[1] == "root") { + toNode.designatedRoot = words[2]; + toNode.pathCost = words[5]; + } else if (words[1] == "bridge") { + toNode.designatedBridge = words[2]; + toNode.msgAgeTimer = words[6]; + } else if (words[1] == "port") { + toNode.designatedPort = words[2]; + toNode.fwdDelayTimer = words[6]; + } else if (words[1] == "cost") { + toNode.designatedCost = words[2]; + toNode.holdTimer = words[5]; + } else if (words[0] == "flags") { + toNode.flags = ""; + for (var i = 1; i < words.length; i++) { + if (toNode.flags.length > 0) + toNode.flags = toNode.flags + ","; + toNode.flags = toNode.flags + words[i]; + } + } + } + if (toNode.remoteState == "forwarding" && toNode.stpState == "forwarding") + toNode.connects = 1; + else + toNode.connects = 0; + + } else if (words[0] == "bridge") { + nodeDataObj.bridgeID = words[2]; + } else if (words[0] == "designated" && words[1] == "root") { + nodeDataObj.designatedRoot = words[2]; + } else if (words[0] == "root") { + nodeDataObj.rootPort = words[2]; + nodeDataObj.pathCost = words[5]; + } else if (words[0] == "max") { + nodeDataObj.maxAge = words[2]; + nodeDataObj.bridgeMaxAge = words[6]; + } else if (words[0] == "hello" && words[1] == "time") { + nodeDataObj.helloTime = words[2]; + nodeDataObj.bridgeHelloTime = words[6]; + } else if (words[0] == "forward") { + nodeDataObj.forwardDelay = words[2]; + nodeDataObj.bridgeForwardDelay = words[6]; + } else if (words[0] == "ageing") { + nodeDataObj.ageingTime = words[2]; + nodeDataObj.gcInterval = words[5]; + } else if (words[0] == "hello" && words[1] == "timer") { + nodeDataObj.helloTimer = words[2]; + nodeDataObj.tcnTimer = words[5]; + } else if (words[0] == "topology") { + nodeDataObj.topologyChangeTimer = words[3]; + nodeDataObj.gcTimer = words[6]; + } else if (words[0] == "flags") { + nodeDataObj.flags = ""; + for (var i = 1; i < words.length; i++) { + if (nodeDataObj.flags.length > 0) + nodeDataObj.flags = nodeDataObj.flags + ","; + nodeDataObj.flags = nodeDataObj.flags + words[i]; + } + } + } + } +} + +function parseIfData(ifData, nodeStrengthData) { + // + // Looking for something like: + // ath0 Link encap:Ethernet HWaddr 00:0E:9B:12:7D:58 + // + var lines = ifData.value.split('\n'); + for (var l = 0; l < lines.length; l++) { + var words = trimAll(lines[l]).split(/\s+/); + if (words[0] == "ath0") { + nodeStrengthData.macAddr = words[4]; + break; + } else if (words[0] == "eth0") { + // + // This case is only if we are debugging on the virtual + // ZP & Controller which doesn't have ath0. + // + if (nodeStrengthData.macAddr == null) + nodeStrengthData.macAddr = words[4]; + } + } +} + +function parseNetData(statusData, nodeStrengthData) { + var noiseFloorNum = 0; + var lines = statusData.value.split('\n'); + nodeStrengthData.channel = 0; + for (var l = 0; l < lines.length; l++) { + var words = trimAll(lines[l]).split(/\s+/); + if (words.length > 0) { + if (words[0] == "Operating") { + nodeStrengthData.channel = (parseInt(words[3])-2407)/5; + } else if (words[0] == "Noise") { + if (noiseFloorNum == 0) { + nodeStrengthData.noiseFloor = "Noise Floor: " + words[2]; + } else { + nodeStrengthData.noiseFloor += ", "; + nodeStrengthData.noiseFloor += words[2]; + } + noiseFloorNum++; + } else if (words[0] == "OFDM") { + nodeStrengthData.weakSignal = lines[l]; + } else if (words[0] == "Node") { + // Node xx:xx:xx:xx:xx:xx - FROM 63 {61} : TO 63 {61} : STP 03 + var sdToNode = new Object(); + + // increment wi depending on ':' + var nextW = 0; + sdToNode.addr = words[1]; + sdToNode.inA = words[4]; + if (words[5] != ":") { + sdToNode.inB = words[5]; + nextW = 8; + } else { + sdToNode.inB = ""; + nextW = 7; + } + + sdToNode.outA = words[nextW]; + if (words[nextW+1] != ":") { + sdToNode.outB = words[nextW+1]; + } else { + sdToNode.outB = ""; + } + + while (++l < lines.length) { + words = trimAll(lines[l]).split(/\s+/); + if (words[0] == "Node") + break; + } + nodeStrengthData.destinations.push(sdToNode); + l--; + } + } + } +} + +function makenetwork() { + // + // If network data is already parsed, bail out now. + // + if (strengthData.length > 0) return; + // + // The data for each node is enclosed in a separate DIV. Begin by getting a collection of all + // the DIVs which where each DIV will contain the data for a single node. + // + var netDataCollection = document.getElementById("netdata").getElementsByTagName("div"); + for (var i = 0; i < netDataCollection.length; i++) { + var netData = netDataCollection[i]; + // + // The name of the DIV will be netdata_RINCON_{UID of node} + // + var dataNameComponents = netData.id.split('_'); + if (dataNameComponents.length == 3) { + var uid = dataNameComponents[1] + "_" + dataNameComponents[2]; + // + // Now, each DIV contains a TEXTAREA with the different data sections we need to parse + // + var statusData = document.getElementById("status_" + uid); + var ifData = document.getElementById("ifconfig_" + uid); + var stpData = document.getElementById("stp_" + uid); + var zoneName = document.getElementById("zonename_" + uid).value; + + var nodeStrengthData = new Object(); + // + // Find the wireless MAC address for this node from the ifconfig data + // If we didn't find it, then just punt this node entirely. + // + parseIfData(ifData, nodeStrengthData); + if (nodeStrengthData.macAddr == null) continue; + + // Store mapping from MAC address to zone name + macAddrsToZoneNames[nodeStrengthData.macAddr] = zoneName; + + // + // Parse the wireless strength data for this node + // + nodeStrengthData.destinations = new Array(); + parseNetData(statusData, nodeStrengthData); + // + // Parse the STP data for this node + // + parseStpData(stpData, nodeStrengthData); + + strengthData.push(nodeStrengthData); + } + } + // + // Take a pass thru the parsed data to come up with the complete list + // of MAC addresses + // + for (var i = 0; i < strengthData.length; i++) { + var sd = strengthData[i]; + addMacAddr(sd.macAddr); + for (var j = 0; j < sd.destinations.length; j++) { + var dst = sd.destinations[j]; + addMacAddr(dst.addr); + } + } + finishDrawTable("networkTableBody"); +} diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/AVTransport1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/AVTransport1.xml new file mode 100644 index 0000000..ad82710 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/AVTransport1.xml @@ -0,0 +1,1519 @@ + + + + 1 + 0 + + + + TransportState + string + + STOPPED + PLAYING + PAUSED_PLAYBACK + TRANSITIONING + + + + TransportStatus + string + + + TransportErrorDescription + string + + + TransportErrorURI + string + + + TransportErrorHttpCode + string + + + TransportErrorHttpHeaders + string + + + PlaybackStorageMedium + string + + NONE + NETWORK + + + + RecordStorageMedium + string + + NONE + + + + PossiblePlaybackStorageMedia + string + + + PossibleRecordStorageMedia + string + + + CurrentPlayMode + string + + NORMAL + REPEAT_ALL + REPEAT_ONE + SHUFFLE_NOREPEAT + SHUFFLE + SHUFFLE_REPEAT_ONE + + NORMAL + + + CurrentCrossfadeMode + boolean + + + TransportPlaySpeed + string + + 1 + + + + RecordMediumWriteStatus + string + + + CurrentRecordQualityMode + string + + + PossibleRecordQualityModes + string + + + NumberOfTracks + ui4 + + 0 + 65535 + + + + CurrentTrack + ui4 + + 0 + 65535 + 1 + + + + CurrentSection + ui4 + + 0 + 255 + 1 + + + + CurrentTrackDuration + string + + + CurrentMediaDuration + string + + + CurrentTrackMetaData + string + + + CurrentTrackURI + string + + + AVTransportURI + string + + + AVTransportURIMetaData + string + + + NextAVTransportURI + string + + + NextAVTransportURIMetaData + string + + + RelativeTimePosition + string + + + AbsoluteTimePosition + string + + + RelativeCounterPosition + i4 + + + AbsoluteCounterPosition + i4 + + + CurrentTransportActions + string + + + SleepTimerGeneration + ui4 + + + SnoozeRunning + boolean + + + AlarmRunning + boolean + + + AlarmIDRunning + ui4 + + + AlarmLoggedStartTime + string + + + RestartPending + boolean + + + LastChange + string + + + NextTrackMetaData + string + + + NextTrackURI + string + + + EnqueuedTransportURIMetaData + string + + + EnqueuedTransportURI + string + + + CurrentValidPlayModes + string + + + MuseSessions + string + + + DirectControlClientID + string + + + DirectControlAccountID + string + + + DirectControlIsSuspended + boolean + + + A_ARG_TYPE_SeekMode + string + + TRACK_NR + REL_TIME + TIME_DELTA + + + + A_ARG_TYPE_SeekTarget + string + + + A_ARG_TYPE_InstanceID + ui4 + + + A_ARG_TYPE_MemberList + string + + + A_ARG_TYPE_TransportSettings + string + + + A_ARG_TYPE_CurrentAVTransportURI + string + + + A_ARG_TYPE_SourceState + string + + + A_ARG_TYPE_VLIState + string + + + A_ARG_TYPE_Queue + string + + + A_ARG_TYPE_MemberID + string + + + A_ARG_TYPE_URI + string + + + A_ARG_TYPE_LIST_URI + string + + + A_ARG_TYPE_URIMetaData + string + + + A_ARG_TYPE_LIST_URIMetaData + string + + + A_ARG_TYPE_ObjectID + string + + + A_ARG_TYPE_GroupID + string + + + A_ARG_TYPE_PlayerID + string + + + A_ARG_TYPE_TrackNumber + ui4 + + + A_ARG_TYPE_NumTracks + ui4 + + + A_ARG_TYPE_NumTracksChange + i4 + + + A_ARG_TYPE_EnqueueAsNext + boolean + + + A_ARG_TYPE_SavedQueueTitle + string + + + A_ARG_TYPE_ResumePlayback + boolean + + + A_ARG_TYPE_ISO8601Time + string + + + A_ARG_TYPE_AlarmVolume + ui2 + + + A_ARG_TYPE_AlarmIncludeLinkedZones + boolean + + + A_ARG_TYPE_ResetVolumeAfter + boolean + + + A_ARG_TYPE_SleepTimerState + string + + + A_ARG_TYPE_AlarmState + string + + + A_ARG_TYPE_StreamRestartState + string + + + A_ARG_TYPE_RejoinGroup + boolean + + + QueueUpdateID + ui4 + + + A_ARG_TYPE_TrackList + string + + + + + SetAVTransportURI + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentURI + in + AVTransportURI + + + CurrentURIMetaData + in + AVTransportURIMetaData + + + + + SetNextAVTransportURI + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + NextURI + in + NextAVTransportURI + + + NextURIMetaData + in + NextAVTransportURIMetaData + + + + + AddURIToQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + EnqueuedURI + in + A_ARG_TYPE_URI + + + EnqueuedURIMetaData + in + A_ARG_TYPE_URIMetaData + + + DesiredFirstTrackNumberEnqueued + in + A_ARG_TYPE_TrackNumber + + + EnqueueAsNext + in + A_ARG_TYPE_EnqueueAsNext + + + FirstTrackNumberEnqueued + out + A_ARG_TYPE_TrackNumber + + + NumTracksAdded + out + A_ARG_TYPE_NumTracks + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + + + AddMultipleURIsToQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + UpdateID + in + QueueUpdateID + + + NumberOfURIs + in + A_ARG_TYPE_NumTracks + + + EnqueuedURIs + in + A_ARG_TYPE_LIST_URI + + + EnqueuedURIsMetaData + in + A_ARG_TYPE_LIST_URIMetaData + + + ContainerURI + in + A_ARG_TYPE_URI + + + ContainerMetaData + in + A_ARG_TYPE_URIMetaData + + + DesiredFirstTrackNumberEnqueued + in + A_ARG_TYPE_TrackNumber + + + EnqueueAsNext + in + A_ARG_TYPE_EnqueueAsNext + + + FirstTrackNumberEnqueued + out + A_ARG_TYPE_TrackNumber + + + NumTracksAdded + out + A_ARG_TYPE_NumTracks + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + QueueUpdateID + + + + + ReorderTracksInQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + StartingIndex + in + A_ARG_TYPE_TrackNumber + + + NumberOfTracks + in + A_ARG_TYPE_NumTracks + + + InsertBefore + in + A_ARG_TYPE_TrackNumber + + + UpdateID + in + QueueUpdateID + + + + + RemoveTrackFromQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + UpdateID + in + QueueUpdateID + + + + + RemoveTrackRangeFromQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + UpdateID + in + QueueUpdateID + + + StartingIndex + in + A_ARG_TYPE_TrackNumber + + + NumberOfTracks + in + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + QueueUpdateID + + + + + RemoveAllTracksFromQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + SaveQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Title + in + A_ARG_TYPE_SavedQueueTitle + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + AssignedObjectID + out + A_ARG_TYPE_ObjectID + + + + + BackupQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + CreateSavedQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Title + in + A_ARG_TYPE_SavedQueueTitle + + + EnqueuedURI + in + A_ARG_TYPE_URI + + + EnqueuedURIMetaData + in + A_ARG_TYPE_URIMetaData + + + NumTracksAdded + out + A_ARG_TYPE_NumTracks + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + AssignedObjectID + out + A_ARG_TYPE_ObjectID + + + NewUpdateID + out + QueueUpdateID + + + + + AddURIToSavedQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + UpdateID + in + QueueUpdateID + + + EnqueuedURI + in + A_ARG_TYPE_URI + + + EnqueuedURIMetaData + in + A_ARG_TYPE_URIMetaData + + + AddAtIndex + in + A_ARG_TYPE_TrackNumber + + + NumTracksAdded + out + A_ARG_TYPE_NumTracks + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + QueueUpdateID + + + + + ReorderTracksInSavedQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + UpdateID + in + QueueUpdateID + + + TrackList + in + A_ARG_TYPE_TrackList + + + NewPositionList + in + A_ARG_TYPE_TrackList + + + QueueLengthChange + out + A_ARG_TYPE_NumTracksChange + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + QueueUpdateID + + + + + GetMediaInfo + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + NrTracks + out + NumberOfTracks + + + MediaDuration + out + CurrentMediaDuration + + + CurrentURI + out + AVTransportURI + + + CurrentURIMetaData + out + AVTransportURIMetaData + + + NextURI + out + NextAVTransportURI + + + NextURIMetaData + out + NextAVTransportURIMetaData + + + PlayMedium + out + PlaybackStorageMedium + + + RecordMedium + out + RecordStorageMedium + + + WriteStatus + out + RecordMediumWriteStatus + + + + + GetTransportInfo + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentTransportState + out + TransportState + + + CurrentTransportStatus + out + TransportStatus + + + CurrentSpeed + out + TransportPlaySpeed + + + + + GetPositionInfo + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Track + out + CurrentTrack + + + TrackDuration + out + CurrentTrackDuration + + + TrackMetaData + out + CurrentTrackMetaData + + + TrackURI + out + CurrentTrackURI + + + RelTime + out + RelativeTimePosition + + + AbsTime + out + AbsoluteTimePosition + + + RelCount + out + RelativeCounterPosition + + + AbsCount + out + AbsoluteCounterPosition + + + + + GetDeviceCapabilities + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + PlayMedia + out + PossiblePlaybackStorageMedia + + + RecMedia + out + PossibleRecordStorageMedia + + + RecQualityModes + out + PossibleRecordQualityModes + + + + + GetTransportSettings + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + PlayMode + out + CurrentPlayMode + + + RecQualityMode + out + CurrentRecordQualityMode + + + + + GetCrossfadeMode + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CrossfadeMode + out + CurrentCrossfadeMode + + + + + Stop + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + Play + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Speed + in + TransportPlaySpeed + + + + + Pause + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + Seek + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Unit + in + A_ARG_TYPE_SeekMode + + + Target + in + A_ARG_TYPE_SeekTarget + + + + + Next + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + Previous + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + SetPlayMode + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + NewPlayMode + in + CurrentPlayMode + + + + + SetCrossfadeMode + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CrossfadeMode + in + CurrentCrossfadeMode + + + + + NotifyDeletedURI + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DeletedURI + in + AVTransportURI + + + + + GetCurrentTransportActions + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Actions + out + CurrentTransportActions + + + + + BecomeCoordinatorOfStandaloneGroup + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DelegatedGroupCoordinatorID + out + A_ARG_TYPE_PlayerID + + + NewGroupID + out + A_ARG_TYPE_GroupID + + + + + DelegateGroupCoordinationTo + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + NewCoordinator + in + A_ARG_TYPE_MemberID + + + RejoinGroup + in + A_ARG_TYPE_RejoinGroup + + + + + BecomeGroupCoordinator + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentCoordinator + in + A_ARG_TYPE_MemberID + + + CurrentGroupID + in + A_ARG_TYPE_GroupID + + + OtherMembers + in + A_ARG_TYPE_MemberList + + + TransportSettings + in + A_ARG_TYPE_TransportSettings + + + CurrentURI + in + AVTransportURI + + + CurrentURIMetaData + in + AVTransportURIMetaData + + + SleepTimerState + in + A_ARG_TYPE_SleepTimerState + + + AlarmState + in + A_ARG_TYPE_AlarmState + + + StreamRestartState + in + A_ARG_TYPE_StreamRestartState + + + CurrentQueueTrackList + in + A_ARG_TYPE_Queue + + + CurrentVLIState + in + A_ARG_TYPE_VLIState + + + + + BecomeGroupCoordinatorAndSource + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentCoordinator + in + A_ARG_TYPE_MemberID + + + CurrentGroupID + in + A_ARG_TYPE_GroupID + + + OtherMembers + in + A_ARG_TYPE_MemberList + + + CurrentURI + in + AVTransportURI + + + CurrentURIMetaData + in + AVTransportURIMetaData + + + SleepTimerState + in + A_ARG_TYPE_SleepTimerState + + + AlarmState + in + A_ARG_TYPE_AlarmState + + + StreamRestartState + in + A_ARG_TYPE_StreamRestartState + + + CurrentAVTTrackList + in + A_ARG_TYPE_Queue + + + CurrentQueueTrackList + in + A_ARG_TYPE_Queue + + + CurrentSourceState + in + A_ARG_TYPE_SourceState + + + ResumePlayback + in + A_ARG_TYPE_ResumePlayback + + + + + ChangeCoordinator + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentCoordinator + in + A_ARG_TYPE_MemberID + + + NewCoordinator + in + A_ARG_TYPE_MemberID + + + NewTransportSettings + in + A_ARG_TYPE_TransportSettings + + + CurrentAVTransportURI + in + A_ARG_TYPE_CurrentAVTransportURI + + + + + ChangeTransportSettings + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + NewTransportSettings + in + A_ARG_TYPE_TransportSettings + + + CurrentAVTransportURI + in + A_ARG_TYPE_CurrentAVTransportURI + + + + + ConfigureSleepTimer + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + NewSleepTimerDuration + in + A_ARG_TYPE_ISO8601Time + + + + + GetRemainingSleepTimerDuration + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + RemainingSleepTimerDuration + out + A_ARG_TYPE_ISO8601Time + + + CurrentSleepTimerGeneration + out + SleepTimerGeneration + + + + + RunAlarm + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + AlarmID + in + AlarmIDRunning + + + LoggedStartTime + in + AlarmLoggedStartTime + + + Duration + in + A_ARG_TYPE_ISO8601Time + + + ProgramURI + in + AVTransportURI + + + ProgramMetaData + in + AVTransportURIMetaData + + + PlayMode + in + CurrentPlayMode + + + Volume + in + A_ARG_TYPE_AlarmVolume + + + IncludeLinkedZones + in + A_ARG_TYPE_AlarmIncludeLinkedZones + + + + + StartAutoplay + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + ProgramURI + in + AVTransportURI + + + ProgramMetaData + in + AVTransportURIMetaData + + + Volume + in + A_ARG_TYPE_AlarmVolume + + + IncludeLinkedZones + in + A_ARG_TYPE_AlarmIncludeLinkedZones + + + ResetVolumeAfter + in + A_ARG_TYPE_ResetVolumeAfter + + + + + GetRunningAlarmProperties + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + AlarmID + out + AlarmIDRunning + + + GroupID + out + A_ARG_TYPE_GroupID + + + LoggedStartTime + out + AlarmLoggedStartTime + + + + + SnoozeAlarm + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Duration + in + A_ARG_TYPE_ISO8601Time + + + + + EndDirectControlSession + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/AlarmClock1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/AlarmClock1.xml new file mode 100644 index 0000000..41087f0 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/AlarmClock1.xml @@ -0,0 +1,447 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_ISO8601Time + string + + + A_ARG_TYPE_Recurrence + string + + ONCE + WEEKDAYS + WEEKENDS + DAILY + + + + A_ARG_TYPE_AlarmID + ui4 + + + A_ARG_TYPE_AlarmList + string + + + A_ARG_TYPE_AlarmEnabled + boolean + + + A_ARG_TYPE_AlarmProgramURI + string + + + A_ARG_TYPE_AlarmProgramMetaData + string + + + A_ARG_TYPE_AlarmPlayMode + string + + NORMAL + REPEAT_ALL + SHUFFLE_NOREPEAT + SHUFFLE + + NORMAL + + + A_ARG_TYPE_AlarmVolume + ui2 + + + A_ARG_TYPE_AlarmIncludeLinkedZones + boolean + + + A_ARG_TYPE_AlarmRoomUUID + string + + + A_ARG_TYPE_TimeZoneIndex + i4 + + + A_ARG_TYPE_TimeZoneAutoAdjustDst + boolean + + + A_ARG_TYPE_TimeZoneInformation + string + + + A_ARG_TYPE_TimeStamp + string + + + TimeZone + string + + + TimeServer + string + + + TimeGeneration + ui4 + + + AlarmListVersion + string + + + DailyIndexRefreshTime + string + + + TimeFormat + string + + + DateFormat + string + + + + + SetFormat + + + DesiredTimeFormat + in + TimeFormat + + + DesiredDateFormat + in + DateFormat + + + + + GetFormat + + + CurrentTimeFormat + out + TimeFormat + + + CurrentDateFormat + out + DateFormat + + + + + SetTimeZone + + + Index + in + A_ARG_TYPE_TimeZoneIndex + + + AutoAdjustDst + in + A_ARG_TYPE_TimeZoneAutoAdjustDst + + + + + GetTimeZone + + + Index + out + A_ARG_TYPE_TimeZoneIndex + + + AutoAdjustDst + out + A_ARG_TYPE_TimeZoneAutoAdjustDst + + + + + GetTimeZoneAndRule + + + Index + out + A_ARG_TYPE_TimeZoneIndex + + + AutoAdjustDst + out + A_ARG_TYPE_TimeZoneAutoAdjustDst + + + CurrentTimeZone + out + TimeZone + + + + + GetTimeZoneRule + + + Index + in + A_ARG_TYPE_TimeZoneIndex + + + TimeZone + out + TimeZone + + + + + SetTimeServer + + + DesiredTimeServer + in + TimeServer + + + + + GetTimeServer + + + CurrentTimeServer + out + TimeServer + + + + + SetTimeNow + + + DesiredTime + in + A_ARG_TYPE_ISO8601Time + + + TimeZoneForDesiredTime + in + A_ARG_TYPE_TimeZoneInformation + + + + + GetHouseholdTimeAtStamp + + + TimeStamp + in + A_ARG_TYPE_TimeStamp + + + HouseholdUTCTime + out + A_ARG_TYPE_ISO8601Time + + + + + GetTimeNow + + + CurrentUTCTime + out + A_ARG_TYPE_ISO8601Time + + + CurrentLocalTime + out + A_ARG_TYPE_ISO8601Time + + + CurrentTimeZone + out + TimeZone + + + CurrentTimeGeneration + out + TimeGeneration + + + + + CreateAlarm + + + StartLocalTime + in + A_ARG_TYPE_ISO8601Time + + + Duration + in + A_ARG_TYPE_ISO8601Time + + + Recurrence + in + A_ARG_TYPE_Recurrence + + + Enabled + in + A_ARG_TYPE_AlarmEnabled + + + RoomUUID + in + A_ARG_TYPE_AlarmRoomUUID + + + ProgramURI + in + A_ARG_TYPE_AlarmProgramURI + + + ProgramMetaData + in + A_ARG_TYPE_AlarmProgramMetaData + + + PlayMode + in + A_ARG_TYPE_AlarmPlayMode + + + Volume + in + A_ARG_TYPE_AlarmVolume + + + IncludeLinkedZones + in + A_ARG_TYPE_AlarmIncludeLinkedZones + + + AssignedID + out + A_ARG_TYPE_AlarmID + + + + + UpdateAlarm + + + ID + in + A_ARG_TYPE_AlarmID + + + StartLocalTime + in + A_ARG_TYPE_ISO8601Time + + + Duration + in + A_ARG_TYPE_ISO8601Time + + + Recurrence + in + A_ARG_TYPE_Recurrence + + + Enabled + in + A_ARG_TYPE_AlarmEnabled + + + RoomUUID + in + A_ARG_TYPE_AlarmRoomUUID + + + ProgramURI + in + A_ARG_TYPE_AlarmProgramURI + + + ProgramMetaData + in + A_ARG_TYPE_AlarmProgramMetaData + + + PlayMode + in + A_ARG_TYPE_AlarmPlayMode + + + Volume + in + A_ARG_TYPE_AlarmVolume + + + IncludeLinkedZones + in + A_ARG_TYPE_AlarmIncludeLinkedZones + + + + + DestroyAlarm + + + ID + in + A_ARG_TYPE_AlarmID + + + + + ListAlarms + + + CurrentAlarmList + out + A_ARG_TYPE_AlarmList + + + CurrentAlarmListVersion + out + AlarmListVersion + + + + + SetDailyIndexRefreshTime + + + DesiredDailyIndexRefreshTime + in + DailyIndexRefreshTime + + + + + GetDailyIndexRefreshTime + + + CurrentDailyIndexRefreshTime + out + DailyIndexRefreshTime + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/AudioIn1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/AudioIn1.xml new file mode 100644 index 0000000..ef52f21 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/AudioIn1.xml @@ -0,0 +1,142 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_MemberID + string + + + A_ARG_TYPE_TransportSettings + string + + + AudioInputName + string + + + Icon + string + + + LineInConnected + boolean + + + LeftLineInLevel + i4 + + + RightLineInLevel + i4 + + + A_ARG_TYPE_ObjectID + string + + + Playing + boolean + + + + + StartTransmissionToGroup + + + CoordinatorID + in + A_ARG_TYPE_MemberID + + + CurrentTransportSettings + out + A_ARG_TYPE_TransportSettings + + + + + StopTransmissionToGroup + + + CoordinatorID + in + A_ARG_TYPE_MemberID + + + + + SetAudioInputAttributes + + + DesiredName + in + AudioInputName + + + DesiredIcon + in + Icon + + + + + GetAudioInputAttributes + + + CurrentName + out + AudioInputName + + + CurrentIcon + out + Icon + + + + + SetLineInLevel + + + DesiredLeftLineInLevel + in + LeftLineInLevel + + + DesiredRightLineInLevel + in + RightLineInLevel + + + + + GetLineInLevel + + + CurrentLeftLineInLevel + out + LeftLineInLevel + + + CurrentRightLineInLevel + out + RightLineInLevel + + + + + SelectAudio + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/ConnectionManager1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/ConnectionManager1.xml new file mode 100644 index 0000000..cda9f82 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/ConnectionManager1.xml @@ -0,0 +1,132 @@ + + + + 1 + 0 + + + + SourceProtocolInfo + string + + + SinkProtocolInfo + string + + + CurrentConnectionIDs + string + + + A_ARG_TYPE_ConnectionStatus + string + + OK + ContentFormatMismatch + InsufficientBandwidth + UnreliableChannel + Unknown + + + + A_ARG_TYPE_ConnectionManager + string + + + A_ARG_TYPE_Direction + string + + Input + Output + + + + A_ARG_TYPE_ProtocolInfo + string + + + A_ARG_TYPE_ConnectionID + i4 + + + A_ARG_TYPE_AVTransportID + i4 + + + A_ARG_TYPE_RcsID + i4 + + + + + GetProtocolInfo + + + Source + out + SourceProtocolInfo + + + Sink + out + SinkProtocolInfo + + + + + GetCurrentConnectionIDs + + + ConnectionIDs + out + CurrentConnectionIDs + + + + + GetCurrentConnectionInfo + + + ConnectionID + in + A_ARG_TYPE_ConnectionID + + + RcsID + out + A_ARG_TYPE_RcsID + + + AVTransportID + out + A_ARG_TYPE_AVTransportID + + + ProtocolInfo + out + A_ARG_TYPE_ProtocolInfo + + + PeerConnectionManager + out + A_ARG_TYPE_ConnectionManager + + + PeerConnectionID + out + A_ARG_TYPE_ConnectionID + + + Direction + out + A_ARG_TYPE_Direction + + + Status + out + A_ARG_TYPE_ConnectionStatus + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/ContentDirectory1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/ContentDirectory1.xml new file mode 100644 index 0000000..1ac5aea --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/ContentDirectory1.xml @@ -0,0 +1,391 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_ObjectID + string + + + A_ARG_TYPE_Result + string + + + A_ARG_TYPE_SearchCriteria + string + + + A_ARG_TYPE_BrowseFlag + string + + BrowseMetadata + BrowseDirectChildren + + + + A_ARG_TYPE_Filter + string + + + A_ARG_TYPE_SortCriteria + string + + + A_ARG_TYPE_Prefix + string + + + A_ARG_TYPE_Index + ui4 + + + A_ARG_TYPE_Count + ui4 + + + A_ARG_TYPE_UpdateID + ui4 + + + A_ARG_TYPE_TagValueList + string + + + A_ARG_TYPE_AlbumArtistDisplayOption + string + + + A_ARG_TYPE_SortOrder + string + + + A_ARG_TYPE_LastIndexChange + string + + + SearchCapabilities + string + + + SortCapabilities + string + + + SystemUpdateID + ui4 + + + ContainerUpdateIDs + string + + + ShareIndexInProgress + boolean + + + ShareIndexLastError + string + + + UserRadioUpdateID + string + + + SavedQueuesUpdateID + string + + + ShareListUpdateID + string + + + RecentlyPlayedUpdateID + string + + + Browseable + boolean + + + RadioFavoritesUpdateID + ui4 + + + RadioLocationUpdateID + ui4 + + + FavoritesUpdateID + string + + + FavoritePresetsUpdateID + string + + + + + GetSearchCapabilities + + + SearchCaps + out + SearchCapabilities + + + + + GetSortCapabilities + + + SortCaps + out + SortCapabilities + + + + + GetSystemUpdateID + + + Id + out + SystemUpdateID + + + + + GetAlbumArtistDisplayOption + + + AlbumArtistDisplayOption + out + A_ARG_TYPE_AlbumArtistDisplayOption + + + + + GetLastIndexChange + + + LastIndexChange + out + A_ARG_TYPE_LastIndexChange + + + + + Browse + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + BrowseFlag + in + A_ARG_TYPE_BrowseFlag + + + Filter + in + A_ARG_TYPE_Filter + + + StartingIndex + in + A_ARG_TYPE_Index + + + RequestedCount + in + A_ARG_TYPE_Count + + + SortCriteria + in + A_ARG_TYPE_SortCriteria + + + Result + out + A_ARG_TYPE_Result + + + NumberReturned + out + A_ARG_TYPE_Count + + + TotalMatches + out + A_ARG_TYPE_Count + + + UpdateID + out + A_ARG_TYPE_UpdateID + + + + + FindPrefix + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + Prefix + in + A_ARG_TYPE_Prefix + + + StartingIndex + out + A_ARG_TYPE_Index + + + UpdateID + out + A_ARG_TYPE_UpdateID + + + + + GetAllPrefixLocations + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + TotalPrefixes + out + A_ARG_TYPE_Count + + + PrefixAndIndexCSV + out + A_ARG_TYPE_Result + + + UpdateID + out + A_ARG_TYPE_UpdateID + + + + + CreateObject + + + ContainerID + in + A_ARG_TYPE_ObjectID + + + Elements + in + A_ARG_TYPE_Result + + + ObjectID + out + A_ARG_TYPE_ObjectID + + + Result + out + A_ARG_TYPE_Result + + + + + UpdateObject + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + CurrentTagValue + in + A_ARG_TYPE_TagValueList + + + NewTagValue + in + A_ARG_TYPE_TagValueList + + + + + DestroyObject + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + + + RefreshShareIndex + + + AlbumArtistDisplayOption + in + A_ARG_TYPE_AlbumArtistDisplayOption + + + + + RequestResort + + + SortOrder + in + A_ARG_TYPE_SortOrder + + + + + GetShareIndexInProgress + + + IsIndexing + out + ShareIndexInProgress + + + + + GetBrowseable + + + IsBrowseable + out + Browseable + + + + + SetBrowseable + + + Browseable + in + Browseable + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/DeviceProperties1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/DeviceProperties1.xml new file mode 100644 index 0000000..7cab8b6 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/DeviceProperties1.xml @@ -0,0 +1,610 @@ + + + + 1 + 0 + + + + HouseholdID + string + + + SettingsReplicationState + string + + + ZoneName + string + + + Icon + string + + + Configuration + string + + + Invisible + boolean + + + IsZoneBridge + boolean + + + AirPlayEnabled + boolean + + + SupportsAudioIn + boolean + + + SupportsAudioClip + boolean + + + IsIdle + boolean + + + MoreInfo + string + + + ChannelMapSet + string + + + HTSatChanMapSet + string + + + HTFreq + ui4 + + + HTBondedZoneCommitState + ui4 + + + Orientation + i4 + + + LastChangedPlayState + string + + + RoomCalibrationState + i4 + + + AvailableRoomCalibration + string + + + SatRoomUUID + string + + + LEDState + string + + On + Off + + + + SerialNumber + string + + + SoftwareVersion + string + + + DisplaySoftwareVersion + string + + + HardwareVersion + string + + + IPAddress + string + + + MACAddress + string + + + CopyrightInfo + string + + + ExtraInfo + string + + + HTAudioIn + ui4 + + + Flags + ui4 + + + AutoplayIncludeLinkedZones + boolean + + + AutoplayRoomUUID + string + + + AutoplaySource + string + + + AutoplayVolume + ui2 + + 0 + 100 + 1 + + + + AutoplayUseVolume + boolean + + + TVConfigurationError + boolean + + + HdmiCecAvailable + boolean + + + WirelessMode + ui4 + + + WirelessLeafOnly + boolean + + + HasConfiguredSSID + boolean + + + ChannelFreq + ui4 + + + BehindWifiExtender + ui4 + + + WifiEnabled + boolean + + + ConfigMode + string + + + SecureRegState + ui4 + + + A_ARG_TYPE_ConfigModeOptions + string + + + A_ARG_TYPE_ConfigModeState + string + + + A_ARG_TYPE_ButtonState + string + + + ButtonLockState + string + + On + Off + + + + VoiceConfigState + ui4 + + + MicEnabled + ui4 + + + KeepGrouped + boolean + + + + + SetLEDState + + + DesiredLEDState + in + LEDState + + + + + GetLEDState + + + CurrentLEDState + out + LEDState + + + + + AddBondedZones + + + ChannelMapSet + in + ChannelMapSet + + + + + RemoveBondedZones + + + ChannelMapSet + in + ChannelMapSet + + + KeepGrouped + in + KeepGrouped + + + + + CreateStereoPair + + + ChannelMapSet + in + ChannelMapSet + + + + + SeparateStereoPair + + + ChannelMapSet + in + ChannelMapSet + + + + + SetZoneAttributes + + + DesiredZoneName + in + ZoneName + + + DesiredIcon + in + Icon + + + DesiredConfiguration + in + Configuration + + + + + GetZoneAttributes + + + CurrentZoneName + out + ZoneName + + + CurrentIcon + out + Icon + + + CurrentConfiguration + out + Configuration + + + + + GetHouseholdID + + + CurrentHouseholdID + out + HouseholdID + + + + + GetZoneInfo + + + SerialNumber + out + SerialNumber + + + SoftwareVersion + out + SoftwareVersion + + + DisplaySoftwareVersion + out + DisplaySoftwareVersion + + + HardwareVersion + out + HardwareVersion + + + IPAddress + out + IPAddress + + + MACAddress + out + MACAddress + + + CopyrightInfo + out + CopyrightInfo + + + ExtraInfo + out + ExtraInfo + + + HTAudioIn + out + HTAudioIn + + + Flags + out + Flags + + + + + SetAutoplayLinkedZones + + + IncludeLinkedZones + in + AutoplayIncludeLinkedZones + + + Source + in + AutoplaySource + + + + + GetAutoplayLinkedZones + + + IncludeLinkedZones + out + AutoplayIncludeLinkedZones + + + Source + in + AutoplaySource + + + + + SetAutoplayRoomUUID + + + RoomUUID + in + AutoplayRoomUUID + + + Source + in + AutoplaySource + + + + + GetAutoplayRoomUUID + + + RoomUUID + out + AutoplayRoomUUID + + + Source + in + AutoplaySource + + + + + SetAutoplayVolume + + + Volume + in + AutoplayVolume + + + Source + in + AutoplaySource + + + + + GetAutoplayVolume + + + CurrentVolume + out + AutoplayVolume + + + Source + in + AutoplaySource + + + + + SetUseAutoplayVolume + + + UseVolume + in + AutoplayUseVolume + + + Source + in + AutoplaySource + + + + + GetUseAutoplayVolume + + + UseVolume + out + AutoplayUseVolume + + + Source + in + AutoplaySource + + + + + AddHTSatellite + + + HTSatChanMapSet + in + HTSatChanMapSet + + + + + RemoveHTSatellite + + + SatRoomUUID + in + SatRoomUUID + + + + + EnterConfigMode + + + Mode + in + ConfigMode + + + Options + in + A_ARG_TYPE_ConfigModeOptions + + + State + out + A_ARG_TYPE_ConfigModeState + + + + + ExitConfigMode + + + Options + in + A_ARG_TYPE_ConfigModeOptions + + + + + GetButtonState + + + State + out + A_ARG_TYPE_ButtonState + + + + + SetButtonLockState + + + DesiredButtonLockState + in + ButtonLockState + + + + + GetButtonLockState + + + CurrentButtonLockState + out + ButtonLockState + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/GroupManagement1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/GroupManagement1.xml new file mode 100644 index 0000000..52b86ed --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/GroupManagement1.xml @@ -0,0 +1,130 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_MemberID + string + + + A_ARG_TYPE_TransportSettings + string + + + A_ARG_TYPE_AVTransportURI + string + + + A_ARG_TYPE_BufferingResultCode + i4 + + + A_ARG_TYPE_BootSeq + ui4 + + + GroupCoordinatorIsLocal + boolean + + + LocalGroupUUID + string + + + VirtualLineInGroupID + string + + + SourceAreaIds + string + + + ResetVolumeAfter + boolean + + + VolumeAVTransportURI + string + + + + + AddMember + + + MemberID + in + A_ARG_TYPE_MemberID + + + BootSeq + in + A_ARG_TYPE_BootSeq + + + CurrentTransportSettings + out + A_ARG_TYPE_TransportSettings + + + CurrentURI + out + A_ARG_TYPE_AVTransportURI + + + GroupUUIDJoined + out + LocalGroupUUID + + + ResetVolumeAfter + out + ResetVolumeAfter + + + VolumeAVTransportURI + out + VolumeAVTransportURI + + + + + RemoveMember + + + MemberID + in + A_ARG_TYPE_MemberID + + + + + ReportTrackBufferingResult + + + MemberID + in + A_ARG_TYPE_MemberID + + + ResultCode + in + A_ARG_TYPE_BufferingResultCode + + + + + SetSourceAreaIds + + + DesiredSourceAreaIds + in + SourceAreaIds + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/GroupRenderingControl1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/GroupRenderingControl1.xml new file mode 100644 index 0000000..53d1c4b --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/GroupRenderingControl1.xml @@ -0,0 +1,127 @@ + + + + 1 + 0 + + + + GroupMute + boolean + + + GroupVolume + ui2 + + 0 + 100 + 1 + + + + GroupVolumeChangeable + boolean + + + A_ARG_TYPE_InstanceID + ui4 + + + A_ARG_TYPE_VolumeAdjustment + i4 + + + + + GetGroupMute + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentMute + out + GroupMute + + + + + SetGroupMute + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DesiredMute + in + GroupMute + + + + + GetGroupVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentVolume + out + GroupVolume + + + + + SetGroupVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DesiredVolume + in + GroupVolume + + + + + SetRelativeGroupVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Adjustment + in + A_ARG_TYPE_VolumeAdjustment + + + NewVolume + out + GroupVolume + + + + + SnapshotGroupVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/HTControl1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/HTControl1.xml new file mode 100644 index 0000000..a9b24bf --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/HTControl1.xml @@ -0,0 +1,137 @@ + + + + 1 + 0 + + + + TOSLinkConnected + boolean + + + IRRepeaterState + string + + On + Off + Disabled + + + + A_ARG_TYPE_Timeout + ui4 + + 0 + 60000 + + + + A_ARG_TYPE_IRRemoteName + string + + + A_ARG_TYPE_IRCode + string + + + RemoteConfigured + boolean + + + LEDFeedbackState + string + + On + Off + + + + + + SetIRRepeaterState + + + DesiredIRRepeaterState + in + IRRepeaterState + + + + + GetIRRepeaterState + + + CurrentIRRepeaterState + out + IRRepeaterState + + + + + IdentifyIRRemote + + + Timeout + in + A_ARG_TYPE_Timeout + + + + + LearnIRCode + + + IRCode + in + A_ARG_TYPE_IRCode + + + Timeout + in + A_ARG_TYPE_Timeout + + + + + CommitLearnedIRCodes + + + Name + in + A_ARG_TYPE_IRRemoteName + + + + + IsRemoteConfigured + + + RemoteConfigured + out + RemoteConfigured + + + + + SetLEDFeedbackState + + + LEDFeedbackState + in + LEDFeedbackState + + + + + GetLEDFeedbackState + + + LEDFeedbackState + out + LEDFeedbackState + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/MusicServices1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/MusicServices1.xml new file mode 100644 index 0000000..ced9c69 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/MusicServices1.xml @@ -0,0 +1,78 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_ServiceDescriptorList + string + + + A_ARG_TYPE_ServiceTypeList + string + + + ServiceId + ui4 + + + ServiceListVersion + string + + + SessionId + string + + + Username + string + + + + + GetSessionId + + + ServiceId + in + ServiceId + + + Username + in + Username + + + SessionId + out + SessionId + + + + + ListAvailableServices + + + AvailableServiceDescriptorList + out + A_ARG_TYPE_ServiceDescriptorList + + + AvailableServiceTypeList + out + A_ARG_TYPE_ServiceTypeList + + + AvailableServiceListVersion + out + ServiceListVersion + + + + + UpdateAvailableServices + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/QPlay1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/QPlay1.xml new file mode 100644 index 0000000..f6d3388 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/QPlay1.xml @@ -0,0 +1,52 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_Seed + string + + + A_ARG_TYPE_Code + string + + + A_ARG_TYPE_MID + string + + + A_ARG_TYPE_DID + string + + + + + QPlayAuth + + + Seed + in + A_ARG_TYPE_Seed + + + Code + out + A_ARG_TYPE_Code + + + MID + out + A_ARG_TYPE_MID + + + DID + out + A_ARG_TYPE_DID + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/Queue1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/Queue1.xml new file mode 100644 index 0000000..a769df4 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/Queue1.xml @@ -0,0 +1,474 @@ + + + + 1 + 0 + + + + LastChange + string + + + UpdateID + ui4 + + + Curated + boolean + + + A_ARG_TYPE_UpdateID + ui4 + + + A_ARG_TYPE_QueueID + ui4 + + + A_ARG_TYPE_QueueOwnerID + string + + + A_ARG_TYPE_QueueOwnerContext + string + + + A_ARG_TYPE_QueuePolicy + string + + + A_ARG_TYPE_URI + string + + + A_ARG_TYPE_LIST_URI + string + + + A_ARG_TYPE_URIMetaData + string + + + A_ARG_TYPE_ObjectID + string + + + A_ARG_TYPE_TrackNumber + ui4 + + + A_ARG_TYPE_NumTracks + ui4 + + + A_ARG_TYPE_EnqueueAsNext + boolean + + + A_ARG_TYPE_SavedQueueTitle + string + + + A_ARG_TYPE_Index + ui4 + + + A_ARG_TYPE_Count + ui4 + + + A_ARG_TYPE_Result + string + + + A_ARG_TYPE_SavedQueueTitle + string + + + A_ARG_TYPE_TrackNumbersCSV + string + + + A_ARG_TYPE_LIST_URI_AND_METADATA + string + + + + + AddURI + + + QueueID + in + A_ARG_TYPE_QueueID + + + UpdateID + in + A_ARG_TYPE_UpdateID + + + EnqueuedURI + in + A_ARG_TYPE_URI + + + EnqueuedURIMetaData + in + A_ARG_TYPE_URIMetaData + + + DesiredFirstTrackNumberEnqueued + in + A_ARG_TYPE_TrackNumber + + + EnqueueAsNext + in + A_ARG_TYPE_EnqueueAsNext + + + FirstTrackNumberEnqueued + out + A_ARG_TYPE_TrackNumber + + + NumTracksAdded + out + A_ARG_TYPE_NumTracks + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + UpdateID + + + + + AddMultipleURIs + + + QueueID + in + A_ARG_TYPE_QueueID + + + UpdateID + in + A_ARG_TYPE_UpdateID + + + ContainerURI + in + A_ARG_TYPE_URI + + + ContainerMetaData + in + A_ARG_TYPE_URIMetaData + + + DesiredFirstTrackNumberEnqueued + in + A_ARG_TYPE_TrackNumber + + + EnqueueAsNext + in + A_ARG_TYPE_EnqueueAsNext + + + NumberOfURIs + in + A_ARG_TYPE_NumTracks + + + EnqueuedURIsAndMetaData + in + A_ARG_TYPE_LIST_URI_AND_METADATA + + + FirstTrackNumberEnqueued + out + A_ARG_TYPE_TrackNumber + + + NumTracksAdded + out + A_ARG_TYPE_NumTracks + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + UpdateID + + + + + AttachQueue + + + QueueOwnerID + in + A_ARG_TYPE_QueueOwnerID + + + QueueID + out + A_ARG_TYPE_QueueID + + + QueueOwnerContext + out + A_ARG_TYPE_QueueOwnerContext + + + + + Backup + + + + + Browse + + + QueueID + in + A_ARG_TYPE_QueueID + + + StartingIndex + in + A_ARG_TYPE_Index + + + RequestedCount + in + A_ARG_TYPE_Count + + + Result + out + A_ARG_TYPE_Result + + + NumberReturned + out + A_ARG_TYPE_Count + + + TotalMatches + out + A_ARG_TYPE_Count + + + UpdateID + out + A_ARG_TYPE_UpdateID + + + + + CreateQueue + + + QueueOwnerID + in + A_ARG_TYPE_QueueOwnerID + + + QueueOwnerContext + in + A_ARG_TYPE_QueueOwnerContext + + + QueueID + out + A_ARG_TYPE_QueueID + + + QueuePolicy + in + A_ARG_TYPE_QueuePolicy + + + + + RemoveAllTracks + + + QueueID + in + A_ARG_TYPE_QueueID + + + UpdateID + in + A_ARG_TYPE_UpdateID + + + NewUpdateID + out + UpdateID + + + + + RemoveTrackRange + + + QueueID + in + A_ARG_TYPE_QueueID + + + UpdateID + in + A_ARG_TYPE_UpdateID + + + StartingIndex + in + A_ARG_TYPE_TrackNumber + + + NumberOfTracks + in + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + UpdateID + + + + + ReorderTracks + + + QueueID + in + A_ARG_TYPE_QueueID + + + StartingIndex + in + A_ARG_TYPE_TrackNumber + + + NumberOfTracks + in + A_ARG_TYPE_NumTracks + + + InsertBefore + in + A_ARG_TYPE_TrackNumber + + + UpdateID + in + A_ARG_TYPE_UpdateID + + + NewUpdateID + out + UpdateID + + + + + ReplaceAllTracks + + + QueueID + in + A_ARG_TYPE_QueueID + + + UpdateID + in + A_ARG_TYPE_UpdateID + + + ContainerURI + in + A_ARG_TYPE_URI + + + ContainerMetaData + in + A_ARG_TYPE_URIMetaData + + + CurrentTrackIndex + in + A_ARG_TYPE_TrackNumber + + + NewCurrentTrackIndices + in + A_ARG_TYPE_TrackNumbersCSV + + + NumberOfURIs + in + A_ARG_TYPE_NumTracks + + + EnqueuedURIsAndMetaData + in + A_ARG_TYPE_LIST_URI_AND_METADATA + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + UpdateID + + + + + SaveAsSonosPlaylist + + + QueueID + in + A_ARG_TYPE_QueueID + + + Title + in + A_ARG_TYPE_SavedQueueTitle + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + AssignedObjectID + out + A_ARG_TYPE_ObjectID + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/RenderingControl1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/RenderingControl1.xml new file mode 100644 index 0000000..a6abd88 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/RenderingControl1.xml @@ -0,0 +1,775 @@ + + + + 1 + 0 + + + + LastChange + string + + + Mute + boolean + + + Volume + ui2 + + 0 + 100 + 1 + + + + A_ARG_TYPE_LeftVolume + ui2 + + 0 + 100 + 1 + + + + A_ARG_TYPE_RightVolume + ui2 + + 0 + 100 + 1 + + + + VolumeDB + i2 + + + Bass + i2 + + -10 + 10 + 1 + + + + Treble + i2 + + -10 + 10 + 1 + + + + EQValue + i2 + + + A_ARG_TYPE_EQType + string + + + Loudness + boolean + + + SupportsOutputFixed + boolean + + + OutputFixed + boolean + + + HeadphoneConnected + boolean + + + A_ARG_TYPE_Channel + string + + Master + LF + RF + + + + A_ARG_TYPE_MuteChannel + string + + Master + LF + RF + SpeakerOnly + + + + A_ARG_TYPE_InstanceID + ui4 + + + A_ARG_TYPE_VolumeAdjustment + i4 + + + A_ARG_TYPE_RampType + string + + SLEEP_TIMER_RAMP_TYPE + ALARM_RAMP_TYPE + AUTOPLAY_RAMP_TYPE + + + + A_ARG_TYPE_RampTimeSeconds + ui4 + + + A_ARG_TYPE_ResetVolumeAfter + boolean + + + A_ARG_TYPE_ProgramURI + string + + + A_ARG_TYPE_ChannelMap + string + + + AudioDelay + string + + + AudioDelayLeftRear + string + + + AudioDelayRightRear + string + + + DialogLevel + string + + + SpeakerSize + ui4 + + + SubCrossover + string + + + SubEnabled + boolean + + + SubGain + string + + + SubPolarity + string + + + SurroundLevel + string + + + MusicSurroundLevel + string + + + NightMode + boolean + + + SurroundEnabled + boolean + + + SurroundMode + string + + + PresetNameList + string + + + RoomCalibrationID + string + + + RoomCalibrationCoefficients + string + + + RoomCalibrationCalibrationMode + string + + + RoomCalibrationEnabled + boolean + + + RoomCalibrationAvailable + boolean + + + + + GetMute + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_MuteChannel + + + CurrentMute + out + Mute + + + + + SetMute + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_MuteChannel + + + DesiredMute + in + Mute + + + + + ResetBasicEQ + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Bass + out + Bass + + + Treble + out + Treble + + + Loudness + out + Loudness + + + LeftVolume + out + A_ARG_TYPE_LeftVolume + + + RightVolume + out + A_ARG_TYPE_RightVolume + + + + + ResetExtEQ + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + EQType + in + A_ARG_TYPE_EQType + + + + + GetVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + CurrentVolume + out + Volume + + + + + SetVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + DesiredVolume + in + Volume + + + + + SetRelativeVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + Adjustment + in + A_ARG_TYPE_VolumeAdjustment + + + NewVolume + out + Volume + + + + + GetVolumeDB + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + CurrentVolume + out + VolumeDB + + + + + SetVolumeDB + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + DesiredVolume + in + VolumeDB + + + + + GetVolumeDBRange + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + MinValue + out + VolumeDB + + + MaxValue + out + VolumeDB + + + + + GetBass + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentBass + out + Bass + + + + + SetBass + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DesiredBass + in + Bass + + + + + GetTreble + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentTreble + out + Treble + + + + + SetTreble + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DesiredTreble + in + Treble + + + + + GetEQ + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + EQType + in + A_ARG_TYPE_EQType + + + CurrentValue + out + EQValue + + + + + SetEQ + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + EQType + in + A_ARG_TYPE_EQType + + + DesiredValue + in + EQValue + + + + + GetLoudness + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + CurrentLoudness + out + Loudness + + + + + SetLoudness + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + DesiredLoudness + in + Loudness + + + + + GetSupportsOutputFixed + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentSupportsFixed + out + SupportsOutputFixed + + + + + GetOutputFixed + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentFixed + out + OutputFixed + + + + + SetOutputFixed + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DesiredFixed + in + OutputFixed + + + + + GetHeadphoneConnected + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentHeadphoneConnected + out + HeadphoneConnected + + + + + RampToVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + RampType + in + A_ARG_TYPE_RampType + + + DesiredVolume + in + Volume + + + ResetVolumeAfter + in + A_ARG_TYPE_ResetVolumeAfter + + + ProgramURI + in + A_ARG_TYPE_ProgramURI + + + RampTime + out + A_ARG_TYPE_RampTimeSeconds + + + + + RestoreVolumePriorToRamp + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + + + SetChannelMap + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + ChannelMap + in + A_ARG_TYPE_ChannelMap + + + + + SetRoomCalibrationX + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CalibrationID + in + RoomCalibrationID + + + Coefficients + in + RoomCalibrationCoefficients + + + CalibrationMode + in + RoomCalibrationCalibrationMode + + + + + GetRoomCalibrationStatus + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + RoomCalibrationEnabled + out + RoomCalibrationEnabled + + + RoomCalibrationAvailable + out + RoomCalibrationAvailable + + + + + SetRoomCalibrationStatus + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + RoomCalibrationEnabled + in + RoomCalibrationEnabled + + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/SystemProperties1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/SystemProperties1.xml new file mode 100644 index 0000000..9a795b5 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/SystemProperties1.xml @@ -0,0 +1,429 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_VariableName + string + + + A_ARG_TYPE_VariableStringValue + string + + + A_ARG_TYPE_AccountType + ui4 + + + A_ARG_TYPE_AccountUID + ui4 + + + A_ARG_TYPE_AccountUDN + string + + + A_ARG_TYPE_AccountID + string + + + A_ARG_TYPE_AccountPassword + string + + + A_ARG_TYPE_AccountNickname + string + + + A_ARG_TYPE_AccountCredential + string + + + A_ARG_TYPE_AccountMd + string + + + A_ARG_TYPE_IsExpired + boolean + + + A_ARG_TYPE_StubsCreated + string + + + A_ARG_TYPE_RDMEnabled + boolean + + + A_ARG_TYPE_OAuthDeviceID + string + + + A_ARG_TYPE_AuthorizationCode + string + + + A_ARG_TYPE_UserIdHashCode + string + + + A_ARG_TYPE_AccountTier + ui4 + + + A_ARG_TYPE_RedirectURI + string + + + CustomerID + string + + + UpdateID + ui4 + + + UpdateIDX + ui4 + + + VoiceUpdateID + ui4 + + + ThirdPartyHash + string + + + + + SetString + + + VariableName + in + A_ARG_TYPE_VariableName + + + StringValue + in + A_ARG_TYPE_VariableStringValue + + + + + GetString + + + VariableName + in + A_ARG_TYPE_VariableName + + + StringValue + out + A_ARG_TYPE_VariableStringValue + + + + + Remove + + + VariableName + in + A_ARG_TYPE_VariableName + + + + + GetWebCode + + + AccountType + in + A_ARG_TYPE_AccountType + + + WebCode + out + A_ARG_TYPE_VariableStringValue + + + + + ProvisionCredentialedTrialAccountX + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountID + in + A_ARG_TYPE_AccountID + + + AccountPassword + in + A_ARG_TYPE_AccountPassword + + + IsExpired + out + A_ARG_TYPE_IsExpired + + + AccountUDN + out + A_ARG_TYPE_AccountUDN + + + + + AddAccountX + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountID + in + A_ARG_TYPE_AccountID + + + AccountPassword + in + A_ARG_TYPE_AccountPassword + + + AccountUDN + out + A_ARG_TYPE_AccountUDN + + + + + AddOAuthAccountX + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountToken + in + A_ARG_TYPE_AccountCredential + + + AccountKey + in + A_ARG_TYPE_AccountCredential + + + OAuthDeviceID + in + A_ARG_TYPE_OAuthDeviceID + + + AuthorizationCode + in + A_ARG_TYPE_AuthorizationCode + + + RedirectURI + in + A_ARG_TYPE_RedirectURI + + + UserIdHashCode + in + A_ARG_TYPE_UserIdHashCode + + + AccountTier + in + A_ARG_TYPE_AccountTier + + + AccountUDN + out + A_ARG_TYPE_AccountUDN + + + AccountNickname + out + A_ARG_TYPE_AccountNickname + + + + + RemoveAccount + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountID + in + A_ARG_TYPE_AccountID + + + + + EditAccountPasswordX + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountID + in + A_ARG_TYPE_AccountID + + + NewAccountPassword + in + A_ARG_TYPE_AccountPassword + + + + + SetAccountNicknameX + + + AccountUDN + in + A_ARG_TYPE_AccountUDN + + + AccountNickname + in + A_ARG_TYPE_AccountNickname + + + + + RefreshAccountCredentialsX + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountUID + in + A_ARG_TYPE_AccountUID + + + AccountToken + in + A_ARG_TYPE_AccountCredential + + + AccountKey + in + A_ARG_TYPE_AccountCredential + + + + + EditAccountMd + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountID + in + A_ARG_TYPE_AccountID + + + NewAccountMd + in + A_ARG_TYPE_AccountMd + + + + + DoPostUpdateTasks + + + ResetThirdPartyCredentials + + + EnableRDM + + + RDMValue + in + A_ARG_TYPE_RDMEnabled + + + + + GetRDM + + + RDMValue + out + A_ARG_TYPE_RDMEnabled + + + + + ReplaceAccountX + + + AccountUDN + in + A_ARG_TYPE_AccountUDN + + + NewAccountID + in + A_ARG_TYPE_AccountID + + + NewAccountPassword + in + A_ARG_TYPE_AccountPassword + + + AccountToken + in + A_ARG_TYPE_AccountCredential + + + AccountKey + in + A_ARG_TYPE_AccountCredential + + + OAuthDeviceID + in + A_ARG_TYPE_OAuthDeviceID + + + NewAccountUDN + out + A_ARG_TYPE_AccountUDN + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/VirtualLineIn1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/VirtualLineIn1.xml new file mode 100644 index 0000000..9ff6c3e --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/VirtualLineIn1.xml @@ -0,0 +1,156 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_InstanceID + ui4 + + + A_ARG_TYPE_PlayerID + string + + + A_ARG_TYPE_Volume + ui2 + + + A_ARG_TYPE_CurrentTransportSettings + string + + + A_ARG_TYPE_Speed + string + + + CurrentTrackMetaData + string + + + EnqueuedTransportURIMetaData + string + + + AVTransportURIMetaData + string + + + CurrentTransportActions + string + + + LastChange + string + + + + + StartTransmission + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CoordinatorID + in + A_ARG_TYPE_PlayerID + + + CurrentTransportSettings + out + A_ARG_TYPE_CurrentTransportSettings + + + + + StopTransmission + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CoordinatorID + in + A_ARG_TYPE_PlayerID + + + + + Play + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Speed + in + A_ARG_TYPE_Speed + + + + + Pause + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + Next + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + Previous + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + Stop + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + SetVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DesiredVolume + in + A_ARG_TYPE_Volume + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/ZoneGroupTopology1.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/ZoneGroupTopology1.xml new file mode 100644 index 0000000..54658c2 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/ZoneGroupTopology1.xml @@ -0,0 +1,262 @@ + + + + 1 + 0 + + + + AvailableSoftwareUpdate + string + + + ZoneGroupState + string + + + ThirdPartyMediaServersX + string + + + AlarmRunSequence + string + + + MuseHouseholdId + string + + + ZoneGroupName + string + + + ZoneGroupID + string + + + ZonePlayerUUIDsInGroup + string + + + A_ARG_TYPE_UpdateType + string + + All + Software + + + + A_ARG_TYPE_CachedOnly + boolean + + + A_ARG_TYPE_UpdateItem + string + + + A_ARG_TYPE_UpdateURL + string + + + A_ARG_TYPE_UpdateFlags + ui4 + + + A_ARG_TYPE_UpdateExtraOptions + string + + + A_ARG_TYPE_Version + string + + + A_ARG_TYPE_MemberID + string + + + A_ARG_TYPE_UnresponsiveDeviceActionType + string + + Remove + TopologyMonitorProbe + VerifyThenRemoveSystemwide + + + + DiagnosticID + ui4 + + + A_ARG_TYPE_IncludeControllers + boolean + + + A_ARG_TYPE_Origin + string + + + A_ARG_TYPE_MobileDeviceName + string + + + A_ARG_TYPE_MobileDeviceUDN + string + + + A_ARG_TYPE_MobileIPAndPort + string + + + AreasUpdateID + string + + + SourceAreasUpdateID + string + + + NetsettingsUpdateID + string + + + + + CheckForUpdate + + + UpdateType + in + A_ARG_TYPE_UpdateType + + + CachedOnly + in + A_ARG_TYPE_CachedOnly + + + Version + in + A_ARG_TYPE_Version + + + UpdateItem + out + A_ARG_TYPE_UpdateItem + + + + + BeginSoftwareUpdate + + + UpdateURL + in + A_ARG_TYPE_UpdateURL + + + Flags + in + A_ARG_TYPE_UpdateFlags + + + ExtraOptions + in + A_ARG_TYPE_UpdateExtraOptions + + + + + ReportUnresponsiveDevice + + + DeviceUUID + in + A_ARG_TYPE_MemberID + + + DesiredAction + in + A_ARG_TYPE_UnresponsiveDeviceActionType + + + + + ReportAlarmStartedRunning + + + SubmitDiagnostics + + + DiagnosticID + out + DiagnosticID + + + IncludeControllers + in + A_ARG_TYPE_IncludeControllers + + + Type + in + A_ARG_TYPE_Origin + + + + + RegisterMobileDevice + + + MobileDeviceName + in + A_ARG_TYPE_MobileDeviceName + + + MobileDeviceUDN + in + A_ARG_TYPE_MobileDeviceUDN + + + MobileIPAndPort + in + A_ARG_TYPE_MobileIPAndPort + + + + + GetZoneGroupAttributes + + + CurrentZoneGroupName + out + ZoneGroupName + + + CurrentZoneGroupID + out + ZoneGroupID + + + CurrentZonePlayerUUIDsInGroup + out + ZonePlayerUUIDsInGroup + + + CurrentMuseHouseholdId + out + MuseHouseholdId + + + + + GetZoneGroupState + + + ZoneGroupState + out + ZoneGroupState + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/device_description.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/device_description.xml new file mode 100644 index 0000000..9208c3f --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/device_description.xml @@ -0,0 +1,216 @@ + + + + 1 + 0 + + + urn:schemas-upnp-org:device:ZonePlayer:1 + #HOST# - Sonos #DISPLAY_NAME# + Sonos, Inc. + http://www.sonos.com + #MODEL# + Sonos #DISPLAY_NAME# + Sonos #DISPLAY_NAME# + http://www.sonos.com/products/zoneplayers/#MODEL# + #SW_VERSION# + #SW_GENERATION# + #HW_VERSION# + #SERIAL_NUM# + #MAC_ADDRESS# + uuid:#UUID# + + + 0 + image/png + 48 + 48 + 24 + /img/icon-#MODEL#.png + + + #SW_MINCOMPATVER# + #SW_LEGACYCOMPATVER# + #API_VERSION# + #MIN_API_VERSION# + #DISPLAY_VERSION# + #EXTRA_VERSION# + #NAME# + #DISPLAY_NAME# + #ZONETYPE# + #FEATURE1# + #FEATURE2# + #FEATURE3# + #SERIESID# + #VARIANT# + #INT_SPEAKER_SIZE# + #BASS_EXT# + #SAT_GAIN_OFFSET# + #MEMORY# + #FLASH# + #DEACTIVATION_STATE_TAG_AND_VALUE# + #DEACTIVATION_TTL_TAG_AND_VALUE# + #DEACTIVATION_DATE_TIME_TAG_AND_VALUE# + #FLASH_REPARTITIONED# + #AMP_ONTIME# + #RETAIL_MODE# + + + urn:schemas-upnp-org:service:AlarmClock:1 + urn:upnp-org:serviceId:AlarmClock + /AlarmClock/Control + /AlarmClock/Event + /xml/AlarmClock1.xml + + + urn:schemas-upnp-org:service:MusicServices:1 + urn:upnp-org:serviceId:MusicServices + /MusicServices/Control + /MusicServices/Event + /xml/MusicServices1.xml + + + urn:schemas-upnp-org:service:AudioIn:1 + urn:upnp-org:serviceId:AudioIn + /AudioIn/Control + /AudioIn/Event + /xml/AudioIn1.xml + + + urn:schemas-upnp-org:service:DeviceProperties:1 + urn:upnp-org:serviceId:DeviceProperties + /DeviceProperties/Control + /DeviceProperties/Event + /xml/DeviceProperties1.xml + + + urn:schemas-upnp-org:service:SystemProperties:1 + urn:upnp-org:serviceId:SystemProperties + /SystemProperties/Control + /SystemProperties/Event + /xml/SystemProperties1.xml + + + urn:schemas-upnp-org:service:ZoneGroupTopology:1 + urn:upnp-org:serviceId:ZoneGroupTopology + /ZoneGroupTopology/Control + /ZoneGroupTopology/Event + /xml/ZoneGroupTopology1.xml + + + urn:schemas-upnp-org:service:GroupManagement:1 + urn:upnp-org:serviceId:GroupManagement + /GroupManagement/Control + /GroupManagement/Event + /xml/GroupManagement1.xml + + + urn:schemas-tencent-com:service:QPlay:1 + urn:tencent-com:serviceId:QPlay + /QPlay/Control + /QPlay/Event + /xml/QPlay1.xml + + + + + #MEDIASERVER_NAMESPACE# + #HOST# - Sonos #DISPLAY_NAME# Media Server + Sonos, Inc. + http://www.sonos.com + #MODEL# + Sonos #DISPLAY_NAME# Media Server + Sonos #DISPLAY_NAME# + http://www.sonos.com/products/zoneplayers/#MODEL# + uuid:#UUID#_MS + + + #CD_NAMESPACE# + urn:upnp-org:serviceId:ContentDirectory + /MediaServer/ContentDirectory/Control + /MediaServer/ContentDirectory/Event + /xml/ContentDirectory1.xml + + + urn:schemas-upnp-org:service:ConnectionManager:1 + urn:upnp-org:serviceId:ConnectionManager + /MediaServer/ConnectionManager/Control + /MediaServer/ConnectionManager/Event + /xml/ConnectionManager1.xml + + + + + urn:schemas-upnp-org:device:MediaRenderer:1 + #NAME# - Sonos #DISPLAY_NAME# Media Renderer + Sonos, Inc. + http://www.sonos.com + #MODEL# + Sonos #DISPLAY_NAME# Media Renderer + Sonos #DISPLAY_NAME# + http://www.sonos.com/products/zoneplayers/#MODEL# + uuid:#UUID#_MR + + + urn:schemas-upnp-org:service:RenderingControl:1 + urn:upnp-org:serviceId:RenderingControl + /MediaRenderer/RenderingControl/Control + /MediaRenderer/RenderingControl/Event + /xml/RenderingControl1.xml + + + urn:schemas-upnp-org:service:ConnectionManager:1 + urn:upnp-org:serviceId:ConnectionManager + /MediaRenderer/ConnectionManager/Control + /MediaRenderer/ConnectionManager/Event + /xml/ConnectionManager1.xml + + + urn:schemas-upnp-org:service:AVTransport:1 + urn:upnp-org:serviceId:AVTransport + /MediaRenderer/AVTransport/Control + /MediaRenderer/AVTransport/Event + /xml/AVTransport1.xml + + + urn:schemas-sonos-com:service:Queue:1 + urn:sonos-com:serviceId:Queue + /MediaRenderer/Queue/Control + /MediaRenderer/Queue/Event + /xml/Queue1.xml + + + urn:schemas-upnp-org:service:GroupRenderingControl:1 + urn:upnp-org:serviceId:GroupRenderingControl + /MediaRenderer/GroupRenderingControl/Control + /MediaRenderer/GroupRenderingControl/Event + /xml/GroupRenderingControl1.xml + + + urn:schemas-upnp-org:service:VirtualLineIn:1 + urn:upnp-org:serviceId:VirtualLineIn + /MediaRenderer/VirtualLineIn/Control + /MediaRenderer/VirtualLineIn/Event + /xml/VirtualLineIn1.xml + + + + urn:rhapsody-real-com:device-id-1-0:sonos_1:#UUID# + + + + + #QPLAY_SUPPORT# + + + image/png + 48 + 48 + 24 + /img/icon-#MODEL#.png + + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/factory_reset.xsl b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/factory_reset.xsl new file mode 100644 index 0000000..084fb60 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/factory_reset.xsl @@ -0,0 +1,15 @@ + + + + + + Challenge:
+ +
+ +
+ +
+ + +
diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/group_description.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/group_description.xml new file mode 100644 index 0000000..8c17da5 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/group_description.xml @@ -0,0 +1,24 @@ + + + + 1 + 0 + + + urn:smartspeaker-audio:device:SpeakerGroup:1 + #GROUP_NAME# + SONOS + uuid:#UUID# + #API_VERSION# + #MIN_API_VERSION# + + + urn:smartspeaker-audio:service:SpeakerGroup:1 + urn:smartspeaker-audio:serviceId:SpeakerGroup + /ssdp/notfound + /ssdp/notfound + /ssdp/notfound + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/review.xsl b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/review.xsl new file mode 100644 index 0000000..39ca7f5 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/review.xsl @@ -0,0 +1,1889 @@ + + + + + + +Sonos Support Info + + + + + + + + + + + + + + + + + + +

Support Data Collected

+
+ + + +
+javascript:toggle('') + () + +
+
+ +display:none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+javascript:toggle('') +Controller + +
+
+ +display:none + + + + + + + + + +
+
+ + + +
+javascript:toggle('') +Track Summary + +
+
+ +display:none + + + + + + + + + + + + + + + + + + + + +
Title
MAX
COUNT
Store Size
Store Used
Entries Size
Entries Used
Conflicts
+
+
+ + +

Tracks

+ + + + + + + + + + + + + + +
FileLeafTitleAlbumArtistComposerGenreSort Key
+
+ + + +
+javascript:toggle('') +Environment + +
+
+ + + + + + + + + + +
VariableValue
+
+
+ + + +
+javascript:toggle('') + + +
+
+ +display:none + + + + + +
contents of 
+
+
+
+ + + +
+javascript:toggle('') + + +
+
+ +display:none + + + + + +
running 
+
+
+
+
+ + + +
+javascript:toggle('') +Zone Player Info + +
+
+ +display:none + + + + + +
+
+
+ + + +
+javascript:toggle('') +Device Info + +
+
+ +display:none + + + + + +
+
+
+ + + +
+javascript:toggle('') +Registration Info + +
+
+ +display:none + + + + + +
+
+
+ + + +
+javascript:toggle('') +Controller Info + +
+
+ +display:none + + + + + +
+
+
+ + + +
+javascript:toggle('') +Zone Players + +
+
+ +display:none + + + + + + + + + + + + + + + + + + + + + + + + + +
Zone NameCoordinatorGroupPrevGroupVLInGroupIDLocationUUIDVersionMinCompatVerCompatWiModeHasSSIDWiFreqWiEnaBeExIdleSWGenQuarReason
+ + + + + + + + + + + + + + + + +
Vanished Zone NameUUIDCurGroupPrevGroupLocationReasonBattery %Battery TempTime SinceQuarReason
+
+
+ + + +
+javascript:toggle('') +Media Servers + +
+
+ +display:none + + + + + + + + + + + + + + + +
NameLocationUUIDVersionCanBeDisplayedUnavailableTypeExt
+
+
+ + +
+javascript:toggle('') +Incoming Subscriptions + +
+display:none + + + + +
+
+
+subscriptions for:  current:  max: 
+
+
+ + + + + + + +
+
+
+
+
+
+ + +
+javascript:toggle('') +Outgoing Subscriptions + +
+display:none + + + + +
+Outgoing Subscriptions
+
+ + + + + + + +
+
+
+
+
+ + +
  • :
  • +
    + + +
  • +
    + + +
  • -
  • +
    + + +

    This table might be incomplete. Found at least + +connections on a player that is configured to accept up to + web sockets. Some connections are +hidden.

    +
    + + + + + +
    +
    + + +
    + +
    + + + +
    +javascript:toggle('') +Muse Server () + +
    +
    + +display:none + + + + + + + + + + + + + + +
    IDSession NameSubscriptionsCommand HistoryRemote EndpointLocal EndpointConnection Details
    + +
    +
    + + +
  • :
  • +
    + +
  • +
    + + + + + + + +
    +
    + + +
    + + +
    + +javascript:toggle('') +[] - () + +
    + +display:none + + + + + + + + + + + + + + +
    TimeDurationResponse CodeRetry WaitCallerStateResource
    +
    +
    + + +
    +javascript:toggle('') +Cloud Queue + +
    + +display:none + + +
    +
    + + + +
    +javascript:toggle('') +Auto Trueplay Info + +
    +
    + +display:none + + + + + + + + + +
    Coeffs + +
    +
    +
    +
    +
    + + + +
    +javascript:toggle('') +Voice + +
    +
    + +display:none + + + + + + + + + + + + + + + + + +
    Accounts
    IDServiceStatusWakeWord
    No Accounts
    + + + + + + + + + + + + + + + + +
    Services
    ServiceStateLast DisconnectEndpointpush-to-talk utterancesfarfield utterancesDialogsExtAudio plays
    + + + + + + + + + + + +
    Voice Processing
    Total WW Utterances
    Total Self-reference blocks
    + + + + + + + + + + + + + + + +
    Trigger History
    Time (s)ServiceTrigger BeamSamples uploadedVoice energyNoise energy
    +
    +
    + + + +
    +javascript:toggle('') +Shares + +
    +
    + +display:none + + + + + + + + + + + + +
    Share PathMount
    +
    +
    + + + +
    +javascript:toggle('') +Rendering Control + +
    +
    + +display:none + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +DNS Cache + +
    +
    + +display:none + + + + + + + + + + + + + + +
    HostnameAddressExpiration (s)
    +
    +
    + + + +
    +javascript:toggle('') +Play Mode + +
    +
    + +display:none + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +Cloud Connection Status + +
    +
    + +display:none + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +Trueplay Info + +
    +
    + +display:none + +

    Current Trueplay Information

    + + + + + + + + + + + + + + + + + + + + + +
    Trueplay State
    User Intent
    Avail Cal ID
    Orientation
    BondedZoneInfo
    +

    Trueplay Calibrations

    +
      + +
    • Calibration ID:
    • +
        + +
      • Device Channel : + + [Orientation = ] +
      • +
        +
      • Block ID:
      • +
      • Difference Metric:
      • +
      • Mode:
      • +
      +
      +
    +
    +
    + + + +
    +javascript:toggle('') +Alarm Data + +
    +
    + +display:none + + + + + + + + +
    Time Server
    Time Mode
    Stamp
    Scheduled
    UTC Time
    Local Time
    + + + + + + +
    Pending Alarm Data
    TypeIDTimeRecurrenceNextUTCNextLocal
    +
    +
    + + + +
    +javascript:makenetwork(); toggle('network'); +Network Matrix + + +
    +
    + + + +
    +javascript:toggle('') +Ethernet Ports + +
    +
    + +display:none + + + + + + + + + + +
    PortLinkSpeed
    +
    +
    + + + +
    +javascript:toggle('') +Ethernet Ports Statistics + +
    +
    + +display:none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    PortStatistics
    +
    +
    Summary
    Packets Received
    Packets Trasmitted
    Bytes Received
    Bytes Transmitted
    Bad Packets Recieved
    Packet Transmit Problem
    Rx Packets Dropped
    Tx Packets Dropped
    Multicasts
    Collisions
    Rx Detailed Errors
    Rx Length Errors
    Overflow errors
    CRC errors
    Frame errors
    Fifo errors
    Missed errors
    Tx Detailed Errors
    Aborted errors
    Carrier errors
    Fifo errors
    Heartbeat errors
    Window errors
    +
    +
    + + + + + + + + + + + + + + +
    +javascript:toggle('') +Radio Station Log + +
    +
    + +display:none + + + + +
    TimestampTypeMilliseconds to ResolveURIMIME Type
    +
    +
    + + + +
    +javascript:toggle('') +Button Triggered XML Dump + +
    +
    + +display:none + +
    + +margin-left:2em + + +
    +
    +
    + + + +
    +javascript:toggle('') +Dropout Triggered XML Dump + +
    +
    + +display:none + +
    + +margin-left:2em + + +
    +
    +
    + + + +
    +javascript:toggle('') +Backtrace + +
    +
    + +display:none + +
    + +margin-left:2em + +
    +
    +
    +
    + + + +
    +javascript:toggle('') +netsettings.txt + +
    +
    + +display:none + +
    + +margin-left:2em + +
    +
    +
    +
    + + + +
    +javascript:toggle('') +ssidlist.txt + +
    +
    + +display:none + +
    + +margin-left:2em + +
    +
    +
    +
    + + + +
    +javascript:toggle('') +Household Netsettings + +
    +
    + +display:none + + + + + + + + + + + + + + +
    LastUpdateDevice
    Version
    FileSchemaVersion
    + + + + + + + + +
    SonosNet
    Frequency
    + + + + + + + + + + + + + + +
    Networks
    SSIDFlags
    +
    +
    + + + +
    +javascript:toggle('') +SystemSettings + +
    +
    + +display:none + + + + + + + + + + + + + + + + + + + + +
    LastUpdateDeviceVersion
    SettingValue
    +
    +
    + + + +
    +javascript:toggle('') +Accounts + +
    +
    + +display:none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    LastUpdateDeviceVersionNextSerialNumVClockHouseholdVClockCloudMuseHouseholdID
    UUIDTypeSerialNumDeletedUNNNMDFlagsOADevIDHashTierVClockHouseholdVClockCloud
    + + + + + + + + + + + + + +
    Replication Player (push requests)OperationTimeResult
    +
    +
    + + + +
    +javascript:toggle('') +Subnet Stats + +
    +
    + +display:none + + + + + + + + + + + + +
    IP AddressSubnet MaskProtection Enabled
    + + + + + + + + + + + + + + + +
    (Total: Sonos: )
    TimeRemote IP AddressUser Agent
    +
    +
    +
    + + + +
    +javascript:toggle('') +Device Certificate () + +
    +
    + +display:none + + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +Performance Counters + +
    +
    + +display:none + + + + + +
    +:
    +
    +
    +
    +
    + + + +
    +javascript:toggle('') +CPU Monitor + +
    +
    + +display:none + + + + + +
    +:
    +
    +
    +
    +
    + + + +
    +javascript:toggle('') +CPU Info + +
    +
    + +display:none + +

    CPU Info

    +
    +
    +
    +
    +
    + + + +
    +javascript:toggle('') +Temperature Histograms + +
    +
    + +display:none + + + + + + + + +
    Temperature Histograms
    +
    +
    + + + +
    + + javascript:toggle('') + Home Theater Configuration + +
    +
    + + display:none + + + + + + + + + +
    Home Theater Configuration
    + + + + + + + + + + +
    Surrounds
    ChannelDelayGain
    +
    +
    + + + +
    +javascript:toggle('') +Toslink Status + +
    +
    + +display:none + + + + + + + + +
    TOSLINK Status
    +
    +
    + + + +
    +javascript:toggle('') +HDMI Status + +
    +
    + +display:none + + + + + + + + + + +
    Status
    + + + + + + + + + +
    CEC
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    TV
    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Topology
    LogicalAddressPhysicalAddressVendorIdOsdNameCecVersionDeclaredCec2MsgObservedLastUpdateSec
    + + + + + +
    RawEdid
    +
    + +
    +
    + + + +
    +javascript:toggle('') +HDMI CEC Messages + +
    +
    + +display:none + + + +
    +HDMI CEC Message Log:
    +
    +
    +
    +
    + + + +
    +javascript:toggle('') +Track Queue Summary + +
    +
    + +display:none + + + + + + + +
    +
    +
    +
    + + + +
    +javascript:toggle('') +Third Party Libraries + +
    +
    + +display:none + + + + + + + +
    +
    +
    +
    + + + +
    +javascript:toggle('') +Service Ids +
    +
    + +display:none + + + + + + + + + + + + + + + + + + + + + + +
    FileCached
    ETag
    Version
    LUD
    +

    + + + + + + + +
    Total
    Service Ids
    +
    +
    + + + +
    +javascript:toggle('') +Track Queue Details () + +
    +
    + + +display:none + + + + + + + + + + + + + + + + + + + + +
    Queue Tracks
    TrackNumTrack /
    Enqueued URL
    ExtraMd /
    EnqueuedMd
    + +
    +
    + + + +
    +javascript:toggle('') +Update Info + +
    +
    + +display:none + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +Zone Experiments + +
    +
    + +display:none + + + + + + + + + + + + + + +
    idtypevalue
    +
    +
    +
    diff --git a/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/satellite_device.xml b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/satellite_device.xml new file mode 100644 index 0000000..61fb224 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/htdocs/xml/satellite_device.xml @@ -0,0 +1,126 @@ + + + + 1 + 0 + + + urn:schemas-upnp-org:device:ZonePlayer:1 + #HOST# - Sonos #DISPLAY_NAME# + Sonos, Inc. + http://www.sonos.com + #MODEL# + Sonos #DISPLAY_NAME# + Sonos #DISPLAY_NAME# + http://www.sonos.com/products/zoneplayers/#MODEL# + #SW_VERSION# + #SW_GENERATION# + #HW_VERSION# + #SERIAL_NUM# + #MAC_ADDRESS# + uuid:#UUID# + + + 0 + image/png + 48 + 48 + 24 + /img/icon-#MODEL#.png + + + #SW_MINCOMPATVER# + #SW_LEGACYCOMPATVER# + #API_VERSION# + #MIN_API_VERSION# + #DISPLAY_VERSION# + #EXTRA_VERSION# + #NAME# + #DISPLAY_NAME# + #ZONETYPE# + #FEATURE1# + #FEATURE2# + #FEATURE3# + #SERIESID# + #VARIANT# + #INT_SPEAKER_SIZE# + #BASS_EXT# + #SAT_GAIN_OFFSET# + #MEMORY# + #FLASH# + #DEACTIVATION_STATE_TAG_AND_VALUE# + #DEACTIVATION_TTL_TAG_AND_VALUE# + #DEACTIVATION_DATE_TIME_TAG_AND_VALUE# + #FLASH_REPARTITIONED# + #AMP_ONTIME# + #RETAIL_MODE# + + + urn:schemas-upnp-org:service:AlarmClock:1 + urn:upnp-org:serviceId:AlarmClock + /AlarmClock/Control + /AlarmClock/Event + /xml/AlarmClock1.xml + + + urn:schemas-upnp-org:service:DeviceProperties:1 + urn:upnp-org:serviceId:DeviceProperties + /DeviceProperties/Control + /DeviceProperties/Event + /xml/DeviceProperties1.xml + + + urn:schemas-upnp-org:service:SystemProperties:1 + urn:upnp-org:serviceId:SystemProperties + /SystemProperties/Control + /SystemProperties/Event + /xml/SystemProperties1.xml + + + urn:schemas-upnp-org:service:ZoneGroupTopology:1 + urn:upnp-org:serviceId:ZoneGroupTopology + /ZoneGroupTopology/Control + /ZoneGroupTopology/Event + /xml/ZoneGroupTopology1.xml + + + urn:schemas-upnp-org:service:GroupManagement:1 + urn:upnp-org:serviceId:GroupManagement + /GroupManagement/Control + /GroupManagement/Event + /xml/GroupManagement1.xml + + + + + urn:schemas-upnp-org:device:MediaRenderer:1 + #NAME# - Sonos #DISPLAY_NAME# Media Renderer + Sonos, Inc. + http://www.sonos.com + #MODEL# + Sonos #DISPLAY_NAME# Media Renderer + Sonos #DISPLAY_NAME# + http://www.sonos.com/products/zoneplayers/#MODEL# + uuid:#UUID#_MR + + + urn:schemas-upnp-org:service:RenderingControl:1 + urn:upnp-org:serviceId:RenderingControl + /MediaRenderer/RenderingControl/Control + /MediaRenderer/RenderingControl/Event + /xml/RenderingControl1.xml + + + + + image/png + 48 + 48 + 24 + /img/icon-#MODEL#.png + + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/log b/devices/ZP120/filesystems/diagfs/opt/log new file mode 120000 index 0000000..6e2e31a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/log @@ -0,0 +1 @@ +/ramdisk/optlog \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/opt/musicservices/musicservices.xml b/devices/ZP120/filesystems/diagfs/opt/musicservices/musicservices.xml new file mode 100644 index 0000000..7be072a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/musicservices/musicservices.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/devices/ZP120/filesystems/diagfs/opt/timezones/timezones.xml b/devices/ZP120/filesystems/diagfs/opt/timezones/timezones.xml new file mode 100644 index 0000000..e92b377 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/opt/timezones/timezones.xml @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/devices/ZP120/filesystems/diagfs/sbin/halt b/devices/ZP120/filesystems/diagfs/sbin/halt new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/sbin/halt @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/sbin/ifconfig b/devices/ZP120/filesystems/diagfs/sbin/ifconfig new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/sbin/ifconfig @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/sbin/ifdown b/devices/ZP120/filesystems/diagfs/sbin/ifdown new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/sbin/ifdown @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/sbin/ifup b/devices/ZP120/filesystems/diagfs/sbin/ifup new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/sbin/ifup @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/sbin/init b/devices/ZP120/filesystems/diagfs/sbin/init new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/sbin/init @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/sbin/insmod b/devices/ZP120/filesystems/diagfs/sbin/insmod new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/sbin/insmod @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/sbin/lsmod b/devices/ZP120/filesystems/diagfs/sbin/lsmod new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/sbin/lsmod @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/sbin/poweroff b/devices/ZP120/filesystems/diagfs/sbin/poweroff new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/sbin/poweroff @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/sbin/reboot b/devices/ZP120/filesystems/diagfs/sbin/reboot new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/sbin/reboot @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/sbin/rmmod b/devices/ZP120/filesystems/diagfs/sbin/rmmod new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/sbin/rmmod @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/sbin/route b/devices/ZP120/filesystems/diagfs/sbin/route new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/sbin/route @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/sbin/udhcpc b/devices/ZP120/filesystems/diagfs/sbin/udhcpc new file mode 100755 index 0000000..3c9551b Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/sbin/udhcpc differ diff --git a/devices/ZP120/filesystems/diagfs/tmp b/devices/ZP120/filesystems/diagfs/tmp new file mode 120000 index 0000000..f77f9ab --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/tmp @@ -0,0 +1 @@ +/ramdisk/tmp \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/[ b/devices/ZP120/filesystems/diagfs/usr/bin/[ new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/[ @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/[[ b/devices/ZP120/filesystems/diagfs/usr/bin/[[ new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/[[ @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/clear b/devices/ZP120/filesystems/diagfs/usr/bin/clear new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/clear @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/cut b/devices/ZP120/filesystems/diagfs/usr/bin/cut new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/cut @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/dirname b/devices/ZP120/filesystems/diagfs/usr/bin/dirname new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/dirname @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/expr b/devices/ZP120/filesystems/diagfs/usr/bin/expr new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/expr @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/find b/devices/ZP120/filesystems/diagfs/usr/bin/find new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/find @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/free b/devices/ZP120/filesystems/diagfs/usr/bin/free new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/free @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/head b/devices/ZP120/filesystems/diagfs/usr/bin/head new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/head @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/killall b/devices/ZP120/filesystems/diagfs/usr/bin/killall new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/killall @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/tail b/devices/ZP120/filesystems/diagfs/usr/bin/tail new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/tail @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/telnet b/devices/ZP120/filesystems/diagfs/usr/bin/telnet new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/telnet @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/test b/devices/ZP120/filesystems/diagfs/usr/bin/test new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/test @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/time b/devices/ZP120/filesystems/diagfs/usr/bin/time new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/time @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/top b/devices/ZP120/filesystems/diagfs/usr/bin/top new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/top @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/traceroute b/devices/ZP120/filesystems/diagfs/usr/bin/traceroute new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/traceroute @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/tty b/devices/ZP120/filesystems/diagfs/usr/bin/tty new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/tty @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/uptime b/devices/ZP120/filesystems/diagfs/usr/bin/uptime new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/uptime @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/wget b/devices/ZP120/filesystems/diagfs/usr/bin/wget new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/wget @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/bin/yes b/devices/ZP120/filesystems/diagfs/usr/bin/yes new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/bin/yes @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/usr/sbin/brctl b/devices/ZP120/filesystems/diagfs/usr/sbin/brctl new file mode 100755 index 0000000..8aee63b Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/usr/sbin/brctl differ diff --git a/devices/ZP120/filesystems/diagfs/usr/sbin/keyval b/devices/ZP120/filesystems/diagfs/usr/sbin/keyval new file mode 100755 index 0000000..74282b8 Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/usr/sbin/keyval differ diff --git a/devices/ZP120/filesystems/diagfs/usr/sbin/netconfig.sh b/devices/ZP120/filesystems/diagfs/usr/sbin/netconfig.sh new file mode 100755 index 0000000..3788e51 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/sbin/netconfig.sh @@ -0,0 +1,412 @@ +#!/bin/sh + + +case "$1" in + sonosnet|station|open|credcheck|deauth|wfacert|wacexit|up) + MODE="$1" + WAC=0 + ;; + wacstart|wacapclose|wactimeout) + MODE="$1" + WAC=1 + ;; + waccredcheck) + MODE=credcheck + WAC=1 + ;; + wacapopen) + MODE=open + WAC=1 + ;; + wacstation) + MODE=station + WAC=1 + ;; + *) + echo "Illegal mode!" + exit 1 + ;; +esac + +PARAM1="$2" +PARAM2="$3" + +MODEL=`/bin/mdputil | /usr/sbin/keyval ^MODEL` +SUBMODEL=`/bin/mdputil | /usr/sbin/keyval ^SUBMODEL` +WIFITYPE=`/bin/mdputil | /usr/sbin/keyval ^WIFITYPE` + +if [ -f /jffs/debug/testpoints.sh ] && \ + [ "`cat /proc/sonos-lock/exec_enable`" == "1" ]; then + . /jffs/debug/testpoints.sh || true +fi + +if [ "${WAC}" = "0" ]; then + if [ -f /tmp/wacd.pid ]; then + kill `cat /tmp/wacd.pid` + rm -f /tmp/wacd.pid + fi +fi + +if [ "${MODE}" = "wacexit" ]; then + exit 0 +fi + +NETSETTINGSFILE=/jffs/netsettings.txt +if [ -f /ramdisk/tmp/netsettings_check.txt ]; then + USE_SSIDLIST=0 + if [ "${MODE}" = "station" ] || [ "${MODE}" = "credcheck" ]; then + NETSETTINGSFILE=/ramdisk/tmp/netsettings_check.txt + fi +else + USE_SSIDLIST=`cat /jffs/net/settings/ssidlist.txt | /usr/sbin/keyval ^UseSSIDList` + if [ "${MODE}" = "credcheck" ]; then + echo "credcheck file not found" + exit 1 + fi +fi + +ATHCONFIG=/wifi/athconfig + +killall wpa_supplicant +if [ "${MODE}" = "station" ] || [ "${MODE}" = "credcheck" ]; then + if [ "${PARAM1}" != "external" ]; then + rm -f /var/run/wpa_supplicant.conf + + if [ -f /jffs/debug/wpa_supplicant.conf ]; then + WPACONFIG=/jffs/debug/wpa_supplicant.conf + WPACONFIGOUT="/dev/null" + else + WPACONFIG=/var/run/wpa_supplicant.conf + WPACONFIGOUT=${WPACONFIG} + fi + + if [ "${USE_SSIDLIST}" = "1" ]; then + SSID_FILE=1 /wifi/wpaconfig /jffs/net/settings/ssidlist.txt ${WPACONFIGOUT} + else + SSID_FILE=0 /wifi/wpaconfig ${NETSETTINGSFILE} ${WPACONFIGOUT} + fi + + if [ -f /jffs/debug/supplicant ]; then + WPADEBUG="-dd -t -K" + else + WPADEBUG="-t" + fi + + if [ -f /jffs/debug/wpa_supplicant ] && \ + [ "`cat /proc/sonos-lock/exec_enable`" == "1" ]; then + WPABIN=/jffs/debug/wpa_supplicant + else + WPABIN=/wifi/wpa_supplicant + fi + fi + KEYHEX=`/usr/sbin/keyval ^NFWPwd ${NETSETTINGSFILE}` + SSIDHEX=`/usr/sbin/keyval ^NFWSSID ${NETSETTINGSFILE}` +fi + +if [ "${MODE}" = "credcheck" ]; then + + $ATHCONFIG stasetenable ath0 2 + if [ "${PARAM1}" = "external" ]; then + /wifi/iwpriv apcli0 set Apcli_Clear_Nw_Profile=255 + if [ "${USE_SSIDLIST}" = "1" ]; then + prof_num=0 + while read LINE + do + SSIDHEX=`echo "${LINE}" | /usr/sbin/keyval ^SSID | cut -d: -f 1` + KEYHEX=`echo "${LINE}" | /usr/sbin/keyval ^SSID | cut -d: -f 2` + + if [ "${#SSIDHEX}" -ne "0" ]; then + if [ "${#KEYHEX}" -ne "0" ]; then + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="${prof_num}:${SSIDHEX}:WPAPSKWPA2PSK:TKIPAES:${KEYHEX}:1" + else + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="${prof_num}:${SSIDHEX}:OPEN:NONE:00:1" + fi + prof_num=`expr $prof_num + 1` + fi + done < /jffs/net/settings/ssidlist.txt + else + if [ "${#KEYHEX}" -ne "0" ]; then + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="0:${SSIDHEX}:WPAPSKWPA2PSK:TKIPAES:${KEYHEX}:1" + else + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="0:${SSIDHEX}:OPEN:NONE:00:1" + fi + fi + /wifi/iwpriv apcli0 set ApCliEnable=1 + else + ${WPABIN} -s -B -D sonos -i ath0 -c ${WPACONFIG} ${WPADEBUG} + fi + + exit 0 +fi + + +if [ "${WAC}" = "0" ] && [ "${MODE}" != "open" ]; then + touch /var/run/waitforip +else + rm -f /var/run/waitforip +fi + +if [ -f /tmp/udhcpc.pid ]; then kill `cat /tmp/udhcpc.pid`; fi +if [ -f /tmp/udhcpc.eth0.pid ]; then kill `cat /tmp/udhcpc.eth0.pid`; fi + +$ATHCONFIG setopenmode ath0 DISABLE +$ATHCONFIG stasetenable ath0 0 +$ATHCONFIG stasetenable ath1 0 +$ATHCONFIG scanabort ath0 +$ATHCONFIG satenable ath0 0 + +/usr/sbin/brctl delif br0 eth0 +/usr/sbin/brctl delif br0 eth1 + +/sbin/ifconfig apcli0 down + +/sbin/ifconfig ath0 down +/sbin/ifconfig ath1 down + +/sbin/ifconfig br0 down +/usr/sbin/brctl delbr br0 + +if [ "${MODE}" = "deauth" ]; then + /usr/sbin/brctl addbr br0 + BRMAC=`/usr/sbin/setmac -S | /usr/sbin/keyval ^br0` + /usr/sbin/brctl setmac br0 ${BRMAC} + + /sbin/ifconfig ath0 0.0.0.0 + exit 0 +fi + +AP="" +WEPKEY="disable" +HHID="" +CHANNEL=2412 +BONJOURNAME="" +PRIMARYUUID="" +PRIORITYBR=0 +HAVE_NETSETTINGS=0 +if [ -f ${NETSETTINGSFILE} ]; then + HAVE_NETSETTINGS=1 + WEPKEY=`/usr/sbin/keyval ^WEPKey ${NETSETTINGSFILE}` + HHID=`/usr/sbin/keyval ^HouseholdID ${NETSETTINGSFILE}` + CHANNEL=`/usr/sbin/keyval ^Channel ${NETSETTINGSFILE}` + PRIORITYBR=`/usr/sbin/keyval ^PriorityBridge ${NETSETTINGSFILE}` + BONJOURNAME=`/usr/sbin/keyval -s BonjourName ${NETSETTINGSFILE}` + PRIMARYUUID=`/usr/sbin/keyval ^PrimaryUUID ${NETSETTINGSFILE}` +fi + +if [ "${MODE}" = "open" ]; then + + if [ "${PARAM2}z" != "z" ]; then + CHANNEL=${PARAM2} + fi + + if [ -f /jffs/debug/openchannel ]; then + CHANNEL=`cat /jffs/debug/openchannel` + fi + + /usr/sbin/setmac -L + + /sbin/ifconfig eth0 0.0.0.0 + /sbin/ifconfig eth1 0.0.0.0 + + $ATHCONFIG setchannel ath0 $CHANNEL + $ATHCONFIG setopenmode ath0 $PARAM1 + + /sbin/ifconfig ath0 10.69.69.1 + /sbin/ifconfig apcli0 0.0.0.0 + + /sbin/route add 255.255.255.255 ath0 + /sbin/route add -net 224.0.0.0 netmask 240.0.0.0 ath0 + exit 0 + +fi + +/usr/sbin/brctl addbr br0 +/usr/sbin/brctl sethello br0 1.0 +/usr/sbin/brctl setfd br0 4.0 +/usr/sbin/brctl setmaxage br0 6.0 + +if [ "${MODE}" = "sonosnet" ]; then + + BRMAC=`/usr/sbin/setmac | /usr/sbin/keyval ^br0` + + /sbin/ifconfig eth0 0.0.0.0 + /sbin/ifconfig eth1 0.0.0.0 + + /usr/sbin/brctl addif br0 eth0 + /usr/sbin/brctl addif br0 eth1 + + /usr/sbin/brctl uplink br0 0 + + echo -n "0" > /var/run/netmanager_extender_flags.tmp + mv -f /var/run/netmanager_extender_flags.tmp /var/run/netmanager_extender_flags + +else + + BRMAC=`/usr/sbin/setmac -S | /usr/sbin/keyval ^br0` + + /sbin/ifconfig eth0 0.0.0.0 + /sbin/ifconfig eth1 0.0.0.0 + + /usr/sbin/brctl uplink br0 1 +fi + +if [ "${MODEL}" = "5" ]; then + /sbin/ifconfig eth0 txqueuelen 100 +fi + +/usr/sbin/brctl setmac br0 ${BRMAC} + + +UUIDA=`/sbin/ifconfig eth0 | /usr/sbin/keyval -d: HWaddr` +UUIDP=`/usr/sbin/keyval ^Port /opt/conf/anacapa.conf` +UUID='RINCON_'$UUIDA'0'$UUIDP + +$ATHCONFIG setwepkey ath0 $WEPKEY +$ATHCONFIG setssid ath0 $HHID +$ATHCONFIG setchannel ath0 $CHANNEL +$ATHCONFIG ssidinbeaconenable ath0 0 +$ATHCONFIG beaconenable ath0 0 + +if [ "${MODE}" = "station" ] || [ "${MODE}" = "wfacert" ]; then + + $ATHCONFIG stasetenable ath0 1 + +elif [ "${MODE}" = "up" ]; then + + /sbin/ifconfig ath0 0.0.0.0 + /sbin/ifconfig apcli0 0.0.0.0 + exit 0 + +elif [ "${MODE}" = "wacstart" ] || [ "${MODE}" = "wactimeout" ]; then + /sbin/ifconfig ath0 0.0.0.0 + + if [ -f /tmp/wacd.pid ]; then kill `cat /tmp/wacd.pid`; fi + + if [ "${MODE}" = "wactimeout" ] ; then + WACDARG="-timeout" + fi + + /wifi/wacd $WACDARG + + exit 0 + +elif [ "${MODE}" = "wacapclose" ]; then + exit 0 +fi + +ISHTSATELLITE=0 +if [ "${PRIMARYUUID}z" != "z" ]; then + ISHTSATELLITE=1 + $ATHCONFIG setprimaryuuid ath0 $PRIMARYUUID + $ATHCONFIG satenable ath0 1 + +elif ( [ "${MODEL}" = "9" ] || [ "${MODEL}" = "14" ] || [ "${MODEL}" = "23" ] || [ "${MODEL}" = "24" ] || [ "${MODEL}" = "27" ] ) && ( [ "${MODE}" = "sonosnet" ] || [ "${MODE}" = "station" ] ); then + + $ATHCONFIG setuuid ath0 $UUID + + $ATHCONFIG setuuid ath1 $UUID + $ATHCONFIG acs ath1 1 + $ATHCONFIG acslmenable ath1 1 + $ATHCONFIG setwepkey ath1 $WEPKEY + $ATHCONFIG setssid ath1 $HHID +fi + + +if [ "${MODE}" = "wfacert" ] ; then + if [ "${MODEL}" = "13" ]; then + $ATHCONFIG settxpower ath0 35 + fi + $ATHCONFIG forcetxrate ath0 1 + $ATHCONFIG setmcs ath0 -54 +fi + +if [ "$PRIORITYBR" = "1" ]; then + /usr/sbin/brctl setbridgeprio br0 28672 # 0x7000 +else + /usr/sbin/brctl setbridgeprio br0 38912 # 0x9800 +fi + +/sbin/ifconfig br0 0.0.0.0 + +/sbin/ifconfig ath0 0.0.0.0 + +/sbin/ifconfig ath1 0.0.0.0 +if [ "${ISHTSATELLITE}" = "1" ]; then + /sbin/ifconfig ath1 down +fi + + +if [ "${MODE}" = "station" ]; then + if [ "${PARAM1}" = "external" ]; then + ifconfig apcli0 up + /wifi/iwpriv apcli0 set Apcli_Clear_Nw_Profile=255 + if [ -f /jffs/net/settings/ssidlist.txt ]; then + prof_num=0 + while read LINE + do + SSIDHEX=`echo "${LINE}" | /usr/sbin/keyval ^SSID | cut -d: -f 1` + KEYHEX=`echo "${LINE}" | /usr/sbin/keyval ^SSID | cut -d: -f 2` + + if [ "${#SSIDHEX}" -ne "0" ]; then + if [ "${#KEYHEX}" -ne "0" ]; then + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="${prof_num}:${SSIDHEX}:WPAPSKWPA2PSK:TKIPAES:${KEYHEX}:1" + else + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="${prof_num}:${SSIDHEX}:OPEN:NONE:00:1" + fi + prof_num=`expr $prof_num + 1` + fi + done < /jffs/net/settings/ssidlist.txt + else + if [ "${#KEYHEX}" -ne "0" ]; then + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="0:${SSIDHEX}:WPAPSKWPA2PSK:TKIPAES:${KEYHEX}:1" + else + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="0:${SSIDHEX}:OPEN:NONE:00:1" + fi + fi + /wifi/iwpriv apcli0 set ApCliEnable=1 + else + ${WPABIN} -s -B -D sonos -i ath0 -b br0 -c ${WPACONFIG} ${WPADEBUG} + fi +fi + +if [ "${BONJOURNAME}z" != "z" ]; then + HOST="${BONJOURNAME}" +elif [ "${MODEL}" = "5" ] || [ "${MODEL}" = "12" ]; then + HOST="SonosZB" +else + HOST="SonosZP" +fi + +/sbin/route add 255.255.255.255 br0 +/sbin/route add -net 224.0.0.0 netmask 240.0.0.0 br0 + +if [ "${MODE}" = "station" ] || [ "${MODE}" = "wfacert" ]; then + DHCP_FLAGS="-z" +fi + +if [ -f /jffs/debug/static_ipaddr ]; then + ifconfig br0 $(cat /jffs/debug/static_ipaddr) + rm -f /var/run/waitforip +else + if [ "${MODEL}" != "5" ]; then + count=1 + while pidof udhcpc > /dev/null + do + sleep 1 + + if [ $count -gt 5 ]; then + killall -SIGKILL udhcpc + break + fi + count=`expr $count + 1` + done + fi + + /sbin/udhcpc -f -s /etc/dhcp.script -i br0 -w ath0 -h "${HOST}" -d access.bestbuy.com ${DHCP_FLAGS} & +fi + +if [ "${MODE}" = "wfacert" ]; then + /sbin/udhcpc -f -s /etc/dhcp.eth0.script -i eth0 -p /tmp/udhcpc.eth0.pid -h "${HOST}" ${DHCP_FLAGS} & +fi + +exit 0 diff --git a/devices/ZP120/filesystems/diagfs/usr/sbin/setmac b/devices/ZP120/filesystems/diagfs/usr/sbin/setmac new file mode 100755 index 0000000..881646d Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/usr/sbin/setmac differ diff --git a/devices/ZP120/filesystems/diagfs/usr/sbin/telnetd b/devices/ZP120/filesystems/diagfs/usr/sbin/telnetd new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/usr/sbin/telnetd @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/var b/devices/ZP120/filesystems/diagfs/var new file mode 120000 index 0000000..5b7d979 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/var @@ -0,0 +1 @@ +/ramdisk/var \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/wifi/N/ath_driver.o b/devices/ZP120/filesystems/diagfs/wifi/N/ath_driver.o new file mode 100644 index 0000000..e685610 Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/wifi/N/ath_driver.o differ diff --git a/devices/ZP120/filesystems/diagfs/wifi/N/ath_hal.o b/devices/ZP120/filesystems/diagfs/wifi/N/ath_hal.o new file mode 100644 index 0000000..98fca5f Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/wifi/N/ath_hal.o differ diff --git a/devices/ZP120/filesystems/diagfs/wifi/N/athconfig b/devices/ZP120/filesystems/diagfs/wifi/N/athconfig new file mode 120000 index 0000000..268c06e --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/wifi/N/athconfig @@ -0,0 +1 @@ +/wifi/athconfig \ No newline at end of file diff --git a/devices/ZP120/filesystems/diagfs/wifi/athconfig b/devices/ZP120/filesystems/diagfs/wifi/athconfig new file mode 100755 index 0000000..05697fc Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/wifi/athconfig differ diff --git a/devices/ZP120/filesystems/diagfs/wifi/netstartd b/devices/ZP120/filesystems/diagfs/wifi/netstartd new file mode 100755 index 0000000..0390553 Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/wifi/netstartd differ diff --git a/devices/ZP120/filesystems/diagfs/wifi/wacd b/devices/ZP120/filesystems/diagfs/wifi/wacd new file mode 100755 index 0000000..edb3612 Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/wifi/wacd differ diff --git a/devices/ZP120/filesystems/diagfs/wifi/wpa_supplicant b/devices/ZP120/filesystems/diagfs/wifi/wpa_supplicant new file mode 100755 index 0000000..438c71f Binary files /dev/null and b/devices/ZP120/filesystems/diagfs/wifi/wpa_supplicant differ diff --git a/devices/ZP120/filesystems/diagfs/wifi/wpaconfig b/devices/ZP120/filesystems/diagfs/wifi/wpaconfig new file mode 100755 index 0000000..d004ff7 --- /dev/null +++ b/devices/ZP120/filesystems/diagfs/wifi/wpaconfig @@ -0,0 +1,87 @@ +#!/bin/sh + +if [ "${#1}" -eq "0" ]; then + echo "usage: ${0} [wpa config file]" + exit +fi + +if [ "${#2}" -ne "0" ]; then + WPACONFIG=${2} +else + WPACONFIG=/var/run/wpa_supplicant.conf +fi + +if [ -f /jffs/debug/wpa_proto ]; then + WPAPROTO=`cat /jffs/debug/wpa_proto` +fi +if [ -f /jffs/debug/wpa_ptk ]; then + WPAPTK=`cat /jffs/debug/wpa_ptk` +fi +if [ -f /jffs/debug/wpa_gtk ]; then + WPAGTK=`cat /jffs/debug/wpa_gtk` +fi + +echo "eapol_version=1" > ${WPACONFIG} +echo "ap_scan=1" >> ${WPACONFIG} + +print_entry() +{ + SSIDHEX=$1 + KEYHEX=$2 + + if [ ${#KEYHEX} -gt "15" ] && [ ${#KEYHEX} -lt "129" ]; then + echo "network={" >> ${WPACONFIG} + echo "ssid=${SSIDHEX}" >> ${WPACONFIG} + echo "scan_ssid=1" >> ${WPACONFIG} + echo "psk=${KEYHEX}" >> ${WPACONFIG} + if [ "${#WPAPROTO}" -ne "0" ];then + echo "proto=${WPAPROTO}" >> ${WPACONFIG} + fi + if [ "${#WPAPTK}" -ne "0" ];then + echo "pairwise=${WPAPTK}" >> ${WPACONFIG} + fi + if [ "${#WPAGTK}" -ne "0" ];then + echo "group=${WPAGTK}" >> ${WPACONFIG} + fi + echo "priority=2" >> ${WPACONFIG} + echo "}" >> ${WPACONFIG} + fi + + if [ ${#KEYHEX} -eq "10" ] || [ ${#KEYHEX} -eq "20" ] || [ ${#KEYHEX} -eq "26" ] || [ ${#KEYHEX} -eq "52" ]; then + echo "network={" >> ${WPACONFIG} + echo "ssid=${SSIDHEX}" >> ${WPACONFIG} + echo "scan_ssid=1" >> ${WPACONFIG} + echo "wep_key0=${KEYHEX}" >> ${WPACONFIG} + echo "wep_tx_keyidx=0" >> ${WPACONFIG} + echo "key_mgmt=NONE" >> ${WPACONFIG} + echo "priority=1" >> ${WPACONFIG} + echo "}" >> ${WPACONFIG} + fi + + echo "network={" >> ${WPACONFIG} + echo "ssid=${SSIDHEX}" >> ${WPACONFIG} + echo "scan_ssid=1" >> ${WPACONFIG} + echo "key_mgmt=NONE" >> ${WPACONFIG} + echo "}" >> ${WPACONFIG} + + /wifi/athconfig stassidlistadd ath0 ${SSIDHEX} ${#KEYHEX} +} + +/wifi/athconfig stassidlistclr ath0 + +if [ "${SSID_FILE}" -eq "1" ]; +then + while read LINE + do + SSIDHEX=`echo "${LINE}" | /usr/sbin/keyval ^SSID | cut -d: -f 1` + KEYHEX=`echo "${LINE}" | /usr/sbin/keyval ^SSID | cut -d: -f 2` + + if [ "${#SSIDHEX}" -ne "0" ]; then + print_entry ${SSIDHEX} ${KEYHEX} + fi + done < ${1} +else + SSIDHEX=`/usr/sbin/keyval ^NFWSSID ${1}` + KEYHEX=`/usr/sbin/keyval ^NFWPwd ${1}` + print_entry ${SSIDHEX} ${KEYHEX} +fi diff --git a/devices/ZP120/filesystems/prodfs.tar.gz b/devices/ZP120/filesystems/prodfs.tar.gz new file mode 100644 index 0000000..1ce37a8 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs.tar.gz differ diff --git a/devices/ZP120/filesystems/prodfs/LEGACYCOMPATVER b/devices/ZP120/filesystems/prodfs/LEGACYCOMPATVER new file mode 100644 index 0000000..7cae3b5 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/LEGACYCOMPATVER @@ -0,0 +1 @@ +36.0-00000 diff --git a/devices/ZP120/filesystems/prodfs/MINCOMPATVER b/devices/ZP120/filesystems/prodfs/MINCOMPATVER new file mode 100644 index 0000000..d3da62e --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/MINCOMPATVER @@ -0,0 +1 @@ +53.0-00000 diff --git a/devices/ZP120/filesystems/prodfs/VERSION b/devices/ZP120/filesystems/prodfs/VERSION new file mode 100644 index 0000000..d72daf5 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/VERSION @@ -0,0 +1 @@ +54.2-72031 diff --git a/devices/ZP120/filesystems/prodfs/bin/ash b/devices/ZP120/filesystems/prodfs/bin/ash new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/ash @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/busybox b/devices/ZP120/filesystems/prodfs/bin/busybox new file mode 100755 index 0000000..def0f36 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/bin/busybox differ diff --git a/devices/ZP120/filesystems/prodfs/bin/cat b/devices/ZP120/filesystems/prodfs/bin/cat new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/cat @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/chmod b/devices/ZP120/filesystems/prodfs/bin/chmod new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/chmod @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/cp b/devices/ZP120/filesystems/prodfs/bin/cp new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/cp @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/date b/devices/ZP120/filesystems/prodfs/bin/date new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/date @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/dd b/devices/ZP120/filesystems/prodfs/bin/dd new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/dd @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/df b/devices/ZP120/filesystems/prodfs/bin/df new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/df @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/dmesg b/devices/ZP120/filesystems/prodfs/bin/dmesg new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/dmesg @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/dnsdomainname b/devices/ZP120/filesystems/prodfs/bin/dnsdomainname new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/dnsdomainname @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/echo b/devices/ZP120/filesystems/prodfs/bin/echo new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/echo @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/false b/devices/ZP120/filesystems/prodfs/bin/false new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/false @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/formatjffs b/devices/ZP120/filesystems/prodfs/bin/formatjffs new file mode 100755 index 0000000..d644794 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/bin/formatjffs differ diff --git a/devices/ZP120/filesystems/prodfs/bin/grep b/devices/ZP120/filesystems/prodfs/bin/grep new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/grep @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/hostname b/devices/ZP120/filesystems/prodfs/bin/hostname new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/hostname @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/kill b/devices/ZP120/filesystems/prodfs/bin/kill new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/kill @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/ln b/devices/ZP120/filesystems/prodfs/bin/ln new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/ln @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/login b/devices/ZP120/filesystems/prodfs/bin/login new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/login @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/ls b/devices/ZP120/filesystems/prodfs/bin/ls new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/ls @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/mdputil b/devices/ZP120/filesystems/prodfs/bin/mdputil new file mode 100755 index 0000000..9747725 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/bin/mdputil differ diff --git a/devices/ZP120/filesystems/prodfs/bin/mkdir b/devices/ZP120/filesystems/prodfs/bin/mkdir new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/mkdir @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/more b/devices/ZP120/filesystems/prodfs/bin/more new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/more @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/mount b/devices/ZP120/filesystems/prodfs/bin/mount new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/mount @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/mv b/devices/ZP120/filesystems/prodfs/bin/mv new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/mv @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/netstat b/devices/ZP120/filesystems/prodfs/bin/netstat new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/netstat @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/pidof b/devices/ZP120/filesystems/prodfs/bin/pidof new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/pidof @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/ping b/devices/ZP120/filesystems/prodfs/bin/ping new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/ping @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/ps b/devices/ZP120/filesystems/prodfs/bin/ps new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/ps @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/pwd b/devices/ZP120/filesystems/prodfs/bin/pwd new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/pwd @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/rm b/devices/ZP120/filesystems/prodfs/bin/rm new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/rm @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/rmdir b/devices/ZP120/filesystems/prodfs/bin/rmdir new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/rmdir @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/sh b/devices/ZP120/filesystems/prodfs/bin/sh new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/sh @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/sleep b/devices/ZP120/filesystems/prodfs/bin/sleep new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/sleep @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/sync b/devices/ZP120/filesystems/prodfs/bin/sync new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/sync @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/touch b/devices/ZP120/filesystems/prodfs/bin/touch new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/touch @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/true b/devices/ZP120/filesystems/prodfs/bin/true new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/true @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/umount b/devices/ZP120/filesystems/prodfs/bin/umount new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/umount @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/uname b/devices/ZP120/filesystems/prodfs/bin/uname new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/uname @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/bin/upgrade b/devices/ZP120/filesystems/prodfs/bin/upgrade new file mode 100755 index 0000000..d13d272 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/bin/upgrade differ diff --git a/devices/ZP120/filesystems/prodfs/bin/upgrade_mgr b/devices/ZP120/filesystems/prodfs/bin/upgrade_mgr new file mode 100755 index 0000000..038d66e Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/bin/upgrade_mgr differ diff --git a/devices/ZP120/filesystems/prodfs/bin/vi b/devices/ZP120/filesystems/prodfs/bin/vi new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/bin/vi @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/build.properties b/devices/ZP120/filesystems/prodfs/build.properties new file mode 100644 index 0000000..5c6714e --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/build.properties @@ -0,0 +1,8 @@ +build.date = 2019-12-03 18:20:38.631851 +build.sysinfo = Linux LIN-200 4.4.0-128-generic #154-Ubuntu SMP Fri May 25 14:15:18 UTC 2018 x86_64 x86_64 +build.arch.type = ppc +build.scm.version = 651879 +build.scm.path = //depot/branches/2019_r7_release +build.type = release +build.host = LIN-200 +build.version = 54.2-72031 diff --git a/devices/ZP120/filesystems/prodfs/etc/Configure b/devices/ZP120/filesystems/prodfs/etc/Configure new file mode 100755 index 0000000..08e83d1 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/Configure @@ -0,0 +1,99 @@ +#!/bin/sh + +mount -t proc proc proc + +/sbin/ifconfig lo 127.0.0.1 up + +mount -t ramfs ramfs /ramdisk +mkdir -m 777 /ramdisk/var +mkdir -m 777 /ramdisk/var/run +mkdir -m 777 /ramdisk/var/log +mkdir -m 777 /ramdisk/tmp +mkdir -m 777 /ramdisk/tmp/pub +mkdir -m 777 /ramdisk/optlog +mkdir -m 777 /ramdisk/smb + +if [ -f /bin/repartition.sh ]; then + sh /bin/repartition.sh +fi + +mount -t jffs2 -o noatime /dev/nandjffs /jffs +if [ $? -ne 0 ] +then + if [ -f /bin/formatjffs ]; then + echo "Reformat jffs" >> /opt/log/repartition.log + /bin/formatjffs + mount -t jffs2 -o noatime /dev/nandjffs /jffs + fi +fi + +/etc/init.d/Srandom + +/sbin/insmod /modules/chk_driver.o +/sbin/insmod /modules/audiodev.o + +/wifi/netstartd --resetcheckonly + +mkdir -p /jffs/app/run +mkdir -p /jffs/app/log +mkdir -p /jffs/app/debug +mkdir -p /jffs/app/settings +mkdir -p /jffs/sys/run +mkdir -p /jffs/sys/log +mkdir -p /jffs/sys/debug +mkdir -p /jffs/sys/settings +mkdir -p /jffs/net/run +mkdir -p /jffs/net/log +mkdir -p /jffs/net/debug +mkdir -p /jffs/net/settings +mkdir -p /jffs/persist + +/bin/mdputil -B + +HOSTNAME=Sonos-`/bin/mdputil | /usr/sbin/keyval ^SERIAL | /usr/bin/cut -c 1-12` +/bin/hostname $HOSTNAME + +if [ -f /jffs/Configure ]; then + echo "Running custom Configure..." + exec /jffs/Configure +fi + +echo 262143 > /proc/sys/net/core/rmem_max +echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts + +echo 32768 36863 > /proc/sys/net/ipv4/ip_local_port_range + +wifiType=N + +/sbin/insmod /wifi/$wifiType/ath_hal.o +/sbin/insmod /wifi/$wifiType/ath_driver.o + +if [ -e /wifi/bridge-ppc.o ]; then + /sbin/insmod /wifi/bridge-ppc.o +fi + +/usr/sbin/setmac + +touch /var/run/waitforip + +if [ -f /etc/unlocked_build_flag -o -e /jffs/system/Configure.dev ]; then + /etc/scripts/run_sshd.sh + + ln -s /opt/htdocs_locked /tmp/htdocs_locked + + touch /tmp/device_unlocked_flag +fi + +if [ -f /jffs/system/Configure.dev ]; then + sh /jffs/system/Configure.dev +fi + +if [ -s /jffs/hosts ]; then + touch /jffs/hosts +else + cp /etc/hosts.orig /jffs/hosts +fi + +/etc/init.d/Krandom + +echo "Configure script complete." diff --git a/devices/ZP120/filesystems/prodfs/etc/dhcp.script b/devices/ZP120/filesystems/prodfs/etc/dhcp.script new file mode 100755 index 0000000..7cda2d4 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/dhcp.script @@ -0,0 +1,54 @@ +#!/bin/sh + +[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 + +RESOLV_CONF="/etc/resolv.conf" +[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" +[ -n "$subnet" ] && NETMASK="netmask $subnet" + +case "$1" in + nak) + echo received a NAK: $message + ;; + + deconfig) + ifconfig $interface 0.0.0.0 + + route del 255.255.255.255 2> /dev/null + route add 255.255.255.255 $interface + + route del -net 224.0.0.0 netmask 240.0.0.0 2> /dev/null + route add -net 224.0.0.0 netmask 240.0.0.0 $interface + ;; + + renew|bound) + rm /var/run/waitforip 2> /dev/null + + ifconfig $interface $ip $BROADCAST $NETMASK + + if [ -n "$router" ] ; then + while route del default gw 0.0.0.0 dev $interface 2> /dev/null ; do + : + done + + for i in $router ; do + route add default gw $i dev $interface + done + fi + + route del 255.255.255.255 2> /dev/null + route add 255.255.255.255 $interface + + route del -net 224.0.0.0 netmask 240.0.0.0 2> /dev/null + route add -net 224.0.0.0 netmask 240.0.0.0 $interface + + echo -n > $RESOLV_CONF + [ -n "$domain" ] && echo search $domain >> $RESOLV_CONF + for i in $dns ; do + echo adding dns $i + echo nameserver $i >> $RESOLV_CONF + done + ;; +esac + +exit 0 diff --git a/devices/ZP120/filesystems/prodfs/etc/fstab b/devices/ZP120/filesystems/prodfs/etc/fstab new file mode 100644 index 0000000..3cc0833 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/fstab @@ -0,0 +1,8 @@ +# /etc/fstab: static file system information. +# +# +#/dev/root / auto defaults,errors=remount-ro 0 0 +/dev/mapper/crroot / auto noatime,nodiratime,defaults 0 0 +proc /proc proc defaults 0 0 +none /dev/pts devpts gid=5,mode=620 0 0 +tmpfs /dev/shm tmpfs defaults,noexec,nodev,nosuid,mode=600 0 0 diff --git a/devices/ZP120/filesystems/prodfs/etc/group b/devices/ZP120/filesystems/prodfs/etc/group new file mode 100644 index 0000000..44737a8 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/group @@ -0,0 +1,22 @@ +root:*:0:root,operator +bin:*:1:bin +daemon:*:2:daemon +sys:*:3:sys +adm:*:4:adm +tty:*:5: +disk:*:6: +lp:*:7:lp +sync:*:8:sync +shutdown:*:9:shutdown +halt:*:10:halt +mail:*:11:mail +news:*:12:news +uucp:*:13:uucp +ftp:*:14:ftp +kmem:*:15: +utmp:*:16: +shadow:*:17: +users:*:100: +nogroup:*:65534: +upgrade:x:998: +messagebus:x:18: diff --git a/devices/ZP120/filesystems/prodfs/etc/host.conf b/devices/ZP120/filesystems/prodfs/etc/host.conf new file mode 100644 index 0000000..1a8c1e1 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/host.conf @@ -0,0 +1,2 @@ +order hosts,bind +multi on diff --git a/devices/ZP120/filesystems/prodfs/etc/hosts b/devices/ZP120/filesystems/prodfs/etc/hosts new file mode 120000 index 0000000..0a62c24 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/hosts @@ -0,0 +1 @@ +/jffs/hosts \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/etc/hosts.orig b/devices/ZP120/filesystems/prodfs/etc/hosts.orig new file mode 100644 index 0000000..eb73c79 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/hosts.orig @@ -0,0 +1,3 @@ +127.0.0.1 localhost.localdomain localhost +255.255.255.255 all-ones all-ones + diff --git a/devices/ZP120/filesystems/prodfs/etc/init.d/Krandom b/devices/ZP120/filesystems/prodfs/etc/init.d/Krandom new file mode 100755 index 0000000..3714476 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/init.d/Krandom @@ -0,0 +1,17 @@ +#!/bin/sh +echo "Saving random seed..." +random_seed=/jffs/random-seed +touch $random_seed +chmod 600 $random_seed +poolfile=/proc/sys/kernel/random/poolsize +# linux 2.4 has the poolsize in bytes, >= 2.6 in bits +case `uname -r` in + 2.4.*) + [ -r $poolfile ] && bytes=`cat $poolfile` || bytes=512 + ;; + *) + [ -r $poolfile ] && bits=`cat $poolfile` || bits=4096 + bytes=$(expr $bits / 8) + ;; +esac +dd if=/dev/urandom "of=$random_seed" count=1 "bs=$bytes" 2> /dev/null diff --git a/devices/ZP120/filesystems/prodfs/etc/init.d/Srandom b/devices/ZP120/filesystems/prodfs/etc/init.d/Srandom new file mode 100755 index 0000000..fe8e603 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/init.d/Srandom @@ -0,0 +1,8 @@ +#!/bin/sh +echo "Initializing random number generator..." +random_seed=/jffs/random-seed +# Carry a random seed from start-up to start-up +# Load and then save the whole entropy pool +if [ -f $random_seed ]; then + cat $random_seed >/dev/urandom +fi diff --git a/devices/ZP120/filesystems/prodfs/etc/init.d/checkroot.sh b/devices/ZP120/filesystems/prodfs/etc/init.d/checkroot.sh new file mode 100755 index 0000000..0711325 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/init.d/checkroot.sh @@ -0,0 +1,139 @@ +# +# checkroot.sh Check to root file system. +# +# Version: @(#)checkroot.sh 2.78-4 25-Jun-2000 miquels@cistron.nl +# +# chkconfig: S 10 0 +# + +. /etc/default/rcS + +# +# Set SULOGIN in /etc/default/rcS to yes if you want a sulogin to be spawned +# from this script *before anything else* with a timeout, like SCO does. +# +[ "$SULOGIN" = yes ] && sulogin -t 30 $CONSOLE + +# +# Activate the swap device(s) in /etc/fstab. This needs to be done +# before fsck, since fsck can be quite memory-hungry. +# +if [ -x /sbin/swapon ] +then + mount -n /proc + if ! grep -qs resync /proc/mdstat + then + [ "$VERBOSE" != no ] && echo "Activating swap..." + swapon -a 2> /dev/null + fi + umount -n /proc +fi + +# +# Ensure that bdflush (update) is running before any major I/O is +# performed (the following fsck is a good example of such activity :). +# +[ -x /sbin/update ] && update + +# +# Read /etc/fstab. +# +exec 9>&0 &9 9>&- + +# +# Check the root file system. +# +if [ -f /fastboot ] || [ $rootcheck = no ] +then + [ $rootcheck = yes ] && echo "Fast boot, no file system check" +else + # + # Ensure that root is quiescent and read-only before fsck'ing. + # + mount -n -o remount,ro / + if [ $? = 0 ] + then + if [ -f /forcefsck ] + then + force="-f" + else + force="" + fi + if [ "$FSCKFIX" = yes ] + then + fix="-y" + else + fix="-a" + fi + echo "Checking root file system..." + fsck -C $force $fix / + # + # If there was a failure, drop into single-user mode. + # + # NOTE: "failure" is defined as exiting with a return code of + # 2 or larger. A return code of 1 indicates that file system + # errors were corrected but that the boot may proceed. + # + if [ $? -gt 1 ] + then + # Surprise! Re-directing from a HERE document (as in + # "cat << EOF") won't work, because the root is read-only. + echo + echo "fsck failed. Please repair manually and reboot. Please note" + echo "that the root file system is currently mounted read-only. To" + echo "remount it read-write:" + echo + echo " # mount -n -o remount,rw /" + echo + echo "CONTROL-D will exit from this shell and REBOOT the system." + echo + # Start a single user shell on the console + /sbin/sulogin $CONSOLE + reboot -f + fi + else + echo "*** ERROR! Cannot fsck root fs because it is not mounted read-only!" + echo + fi +fi + +# +# If the root filesystem was not marked as read-only in /etc/fstab, +# remount the rootfs rw but do not try to change mtab because it +# is on a ro fs until the remount succeeded. Then clean up old mtabs +# and finally write the new mtab. +# +mount -n -o remount,$rootopts / +if [ "$rootmode" = rw ] +then + rm -f /etc/mtab~ /etc/nologin + : > /etc/mtab + mount -f -o remount,$rootopts / + mount /proc + [ "$devfs" ] && grep -q '^devfs /dev' /proc/mounts && mount -f "$devfs" +else + mount -n /proc +fi + diff --git a/devices/ZP120/filesystems/prodfs/etc/init.d/netconf b/devices/ZP120/filesystems/prodfs/etc/init.d/netconf new file mode 100755 index 0000000..29dcaba --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/init.d/netconf @@ -0,0 +1,16 @@ +#!/bin/sh + +case "$1" in +start) +/etc/Configure +;; + +stop) +;; + +*) + echo "Usage: /etc/init.d/netconf {start|stop}" + exit 1 +esac + +exit 0 diff --git a/devices/ZP120/filesystems/prodfs/etc/init.d/nscd b/devices/ZP120/filesystems/prodfs/etc/init.d/nscd new file mode 100755 index 0000000..5d5bb13 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/init.d/nscd @@ -0,0 +1,62 @@ +#!/bin/sh +# +# nscd: Starts the Name Service Cache Daemon +# +# description: This is a daemon which handles passwd and group lookups +# for running programs and caches the results for the next +# query. You should start this daemon only if you use +# slow Services like NIS or NIS+ + +# Sanity checks. +[ -f /etc/nscd.conf ] || exit 0 +[ -x /usr/sbin/nscd ] || exit 0 + +# nscd does not run on any kernel lower than 2.2.0 because of threading +# problems, so we require that in first place. +case `uname -r` in + 2.[0-1].*|1.*) + # This is not ok + exit 0 + ;; +esac + +RETVAL=0 +case "$1" in + start) + secure="" + for table in passwd group + do + if egrep '^'$table':.*nisplus' /etc/nsswitch.conf >/dev/null + then + /usr/sbin/nscd_nischeck $table || + secure="$secure -S $table,yes" + fi + done + echo -n "Starting Name Service Cache Daemon: " + echo "nscd." + start-stop-daemon --start --quiet --exec /usr/sbin/nscd -- $secure + RETVAL=$? + ;; + stop) + echo -n "Stopping Name Service Cache Daemon: " + echo nscd. + /usr/sbin/nscd -K + RETVAL=$? + ;; + reload) + echo "Reloading Name Service Cache Daemon configuration." + start-stop-daemon --stop --signal 1 --quiet --oknodo --exec /usr/sbin/nscd + RETVAL=$? + ;; + force-reload) + $0 stop + $0 start + ;; + restart) + $0 force-reload + ;; + *) + echo "Usage: /etc/init.d/nscd {start|stop|reload|force-reload|restart}" + ;; +esac +exit $RETVAL diff --git a/devices/ZP120/filesystems/prodfs/etc/init.d/rcK b/devices/ZP120/filesystems/prodfs/etc/init.d/rcK new file mode 100755 index 0000000..4bd8161 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/init.d/rcK @@ -0,0 +1,6 @@ +#!/bin/sh +# Preserve seed +/etc/init.d/Krandom +sync +sleep 1 +sync diff --git a/devices/ZP120/filesystems/prodfs/etc/init.d/rcS b/devices/ZP120/filesystems/prodfs/etc/init.d/rcS new file mode 100755 index 0000000..0b47371 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/init.d/rcS @@ -0,0 +1,12 @@ +#!/bin/sh + +mount -t proc proc proc +mount /dev/pts +rm -f /var/run/*.pid +rm -f /tmp/* +ifconfig lo 127.0.0.1 up +/etc/init.d/syslog start +/etc/init.d/netconf start +# Initialize RNG +/etc/init.d/Srandom +exit 0 diff --git a/devices/ZP120/filesystems/prodfs/etc/init.d/syslog b/devices/ZP120/filesystems/prodfs/etc/init.d/syslog new file mode 100755 index 0000000..9afa6e8 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/init.d/syslog @@ -0,0 +1,40 @@ +#! /bin/sh +# /etc/init.d/sysklogd: start system and kernel log daemons. +# +# chkconfig: 2345 10 90 +# +PATH=/bin:/usr/bin:/sbin:/usr/sbin + +test -f /sbin/klogd || exit 0 +test -f /sbin/syslogd || exit 0 + +# Options for start/restart the daemons +# For remote UDP logging use SYSLOGD="-r" +# +SYSLOGD="" + +# Use KLOGD="-k /boot/System.map-$(uname -r)" to specify System.map +# +KLOGD="" + +case "$1" in + start) + echo -n "Starting system log daemon: syslogd" + start-stop-daemon -S -x /sbin/syslogd + echo -n " klogd" + start-stop-daemon -S -x /sbin/klogd + echo "." + ;; + stop) + echo -n "Stopping system log daemon: klogd" + start-stop-daemon -K -x /sbin/klogd + echo -n " syslogd" + start-stop-daemon -K -x /sbin/syslogd + echo "." + ;; + *) + echo "Usage: /etc/init.d/sysklogd {start|stop}" + exit 1 +esac + +exit 0 diff --git a/devices/ZP120/filesystems/prodfs/etc/inittab b/devices/ZP120/filesystems/prodfs/etc/inittab new file mode 100644 index 0000000..86ca946 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/inittab @@ -0,0 +1,8 @@ +# autogenerated by gen_inittab.py for ARCH ppc; DO NOT EDIT +::sysinit:/etc/Configure +null::respawn:/wifi/netstartd +null::respawn:/etc/runanacapa +/dev/tts/0::askfirst:/bin/sh +::ctrlaltdel:/sbin/reboot +::shutdown:/etc/init.d/rcK +::restart:/sbin/init diff --git a/devices/ZP120/filesystems/prodfs/etc/inputrc b/devices/ZP120/filesystems/prodfs/etc/inputrc new file mode 100644 index 0000000..71367b2 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/inputrc @@ -0,0 +1,12 @@ +# /etc/inputrc - global inputrc for libreadline +# See readline(3readline) and `info readline' for more information. + +# Be 8 bit clean. +set input-meta on +set output-meta on + +# To allow the use of 8bit-characters like the german umlauts, comment out +# the line below. However this makes the meta key not work as a meta key, +# which is annoying to those which don't need to type in 8-bit characters. + +# set convert-meta off diff --git a/devices/ZP120/filesystems/prodfs/etc/issue b/devices/ZP120/filesystems/prodfs/etc/issue new file mode 100644 index 0000000..6b1cf33 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/issue @@ -0,0 +1,3 @@ + +Welcome to Rincon Networks + diff --git a/devices/ZP120/filesystems/prodfs/etc/issue.net b/devices/ZP120/filesystems/prodfs/etc/issue.net new file mode 100644 index 0000000..bca2826 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/issue.net @@ -0,0 +1,4 @@ + +Welcome to Rincon Networks +%s/%m %r + diff --git a/devices/ZP120/filesystems/prodfs/etc/motd b/devices/ZP120/filesystems/prodfs/etc/motd new file mode 100644 index 0000000..6b1cf33 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/motd @@ -0,0 +1,3 @@ + +Welcome to Rincon Networks + diff --git a/devices/ZP120/filesystems/prodfs/etc/mtab b/devices/ZP120/filesystems/prodfs/etc/mtab new file mode 100755 index 0000000..9bdc257 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/mtab @@ -0,0 +1,7 @@ +rootfs / rootfs rw 0 0 +/dev/root / ext3 rw 0 0 +/proc /proc proc rw 0 0 +usbdevfs /proc/bus/usb usbdevfs rw 0 0 +/dev/hda1 /boot ext3 rw 0 0 +none /dev/pts devpts rw 0 0 +none /dev/shm tmpfs rw 0 0 diff --git a/devices/ZP120/filesystems/prodfs/etc/nsswitch.conf b/devices/ZP120/filesystems/prodfs/etc/nsswitch.conf new file mode 100644 index 0000000..7164b1c --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/nsswitch.conf @@ -0,0 +1,19 @@ +# /etc/nsswitch.conf +# +# Example configuration of GNU Name Service Switch functionality. +# If you have the `glibc-doc' and `info' packages installed, try: +# `info libc "Name Service Switch"' for information about this file. + +passwd: files +group: files +shadow: files + +hosts: files dns +networks: files + +protocols: files +services: files +ethers: files +rpc: files + +netgroup: files diff --git a/devices/ZP120/filesystems/prodfs/etc/passwd b/devices/ZP120/filesystems/prodfs/etc/passwd new file mode 100644 index 0000000..207d4e4 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/passwd @@ -0,0 +1,12 @@ +root:$1$9n2LmM4w$NtTlyHjzb5wRUA0ajheD61:0:0:root:/:/bin/sh +bin:*:1:1:bin:/bin: +daemon:*:2:2:daemon:/usr/sbin: +sys:*:3:3:sys:/dev: +adm:*:4:4:adm:/var/adm: +sync:*:6:8:sync:/bin:/bin/sync +shutdown:*:7:9:shutdown:/sbin:/sbin/shutdown +halt:*:8:10:halt:/sbin:/sbin/halt +mail:*:9:11:mail:/var/spool/mail: +man:*:16:100:man:/var/cache/man: +nobody:*:65534:65534:nobody:/home:/bin/sh +messagebus:x:18:18:messagebus:/tmp:/bin/false diff --git a/devices/ZP120/filesystems/prodfs/etc/pointercal b/devices/ZP120/filesystems/prodfs/etc/pointercal new file mode 100644 index 0000000..009dac8 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/pointercal @@ -0,0 +1 @@ +1 0 0 0 1 0 1 diff --git a/devices/ZP120/filesystems/prodfs/etc/profile b/devices/ZP120/filesystems/prodfs/etc/profile new file mode 100644 index 0000000..e506dcf --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/profile @@ -0,0 +1,18 @@ +# /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) +# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). + +PATH="/usr/bin:/bin:/usr/sbin:/sbin" +if [ -f /proc/sonos-lock/fallback_state ] ; then + if [ "`cat /proc/sonos-lock/fallback_state`" != "0" ]; then + PS1='Fallback# ' ; + else + PS1='# ' ; + fi +else + PS1='# ' ; +fi + +export PATH PS1 + +umask 022 + diff --git a/devices/ZP120/filesystems/prodfs/etc/protocols b/devices/ZP120/filesystems/prodfs/etc/protocols new file mode 100644 index 0000000..1521f39 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/protocols @@ -0,0 +1,149 @@ +# /etc/protocols: +# $Id: protocols,v 1.3 2001/07/07 07:07:15 nalin Exp $ +# +# Internet (IP) protocols +# +# from: @(#)protocols 5.1 (Berkeley) 4/17/89 +# +# Updated for NetBSD based on RFC 1340, Assigned Numbers (July 1992). +# +# See also http://www.iana.org/assignments/protocol-numbers + +ip 0 IP # internet protocol, pseudo protocol number +#hopopt 0 HOPOPT # hop-by-hop options for ipv6 +icmp 1 ICMP # internet control message protocol +igmp 2 IGMP # internet group management protocol +ggp 3 GGP # gateway-gateway protocol +ipencap 4 IP-ENCAP # IP encapsulated in IP (officially ``IP'') +st 5 ST # ST datagram mode +tcp 6 TCP # transmission control protocol +cbt 7 CBT # CBT, Tony Ballardie +egp 8 EGP # exterior gateway protocol +igp 9 IGP # any private interior gateway (Cisco: for IGRP) +bbn-rcc 10 BBN-RCC-MON # BBN RCC Monitoring +nvp 11 NVP-II # Network Voice Protocol +pup 12 PUP # PARC universal packet protocol +argus 13 ARGUS # ARGUS +emcon 14 EMCON # EMCON +xnet 15 XNET # Cross Net Debugger +chaos 16 CHAOS # Chaos +udp 17 UDP # user datagram protocol +mux 18 MUX # Multiplexing protocol +dcn 19 DCN-MEAS # DCN Measurement Subsystems +hmp 20 HMP # host monitoring protocol +prm 21 PRM # packet radio measurement protocol +xns-idp 22 XNS-IDP # Xerox NS IDP +trunk-1 23 TRUNK-1 # Trunk-1 +trunk-2 24 TRUNK-2 # Trunk-2 +leaf-1 25 LEAF-1 # Leaf-1 +leaf-2 26 LEAF-2 # Leaf-2 +rdp 27 RDP # "reliable datagram" protocol +irtp 28 IRTP # Internet Reliable Transaction Protocol +iso-tp4 29 ISO-TP4 # ISO Transport Protocol Class 4 +netblt 30 NETBLT # Bulk Data Transfer Protocol +mfe-nsp 31 MFE-NSP # MFE Network Services Protocol +merit-inp 32 MERIT-INP # MERIT Internodal Protocol +sep 33 SEP # Sequential Exchange Protocol +3pc 34 3PC # Third Party Connect Protocol +idpr 35 IDPR # Inter-Domain Policy Routing Protocol +xtp 36 XTP # Xpress Tranfer Protocol +ddp 37 DDP # Datagram Delivery Protocol +idpr-cmtp 38 IDPR-CMTP # IDPR Control Message Transport Proto +tp++ 39 TP++ # TP++ Transport Protocol +il 40 IL # IL Transport Protocol +ipv6 41 IPv6 # IPv6 +sdrp 42 SDRP # Source Demand Routing Protocol +ipv6-route 43 IPv6-Route # Routing Header for IPv6 +ipv6-frag 44 IPv6-Frag # Fragment Header for IPv6 +idrp 45 IDRP # Inter-Domain Routing Protocol +rsvp 46 RSVP # Resource ReSerVation Protocol +gre 47 GRE # Generic Routing Encapsulation +mhrp 48 MHRP # Mobile Host Routing Protocol +bna 49 BNA # BNA +ipv6-crypt 50 IPv6-Crypt # Encryption Header for IPv6 +ipv6-auth 51 IPv6-Auth # Authentication Header for IPv6 +i-nlsp 52 I-NLSP # Integrated Net Layer Security TUBA +swipe 53 SWIPE # IP with Encryption +narp 54 NARP # NBMA Address Resolution Protocol +mobile 55 MOBILE # IP Mobility +tlsp 56 TLSP # Transport Layer Security Protocol +skip 57 SKIP # SKIP +ipv6-icmp 58 IPv6-ICMP # ICMP for IPv6 +ipv6-nonxt 59 IPv6-NoNxt # No Next Header for IPv6 +ipv6-opts 60 IPv6-Opts # Destination Options for IPv6 +# 61 # any host internal protocol +cftp 62 CFTP # CFTP +# 63 # any local network +sat-expak 64 SAT-EXPAK # SATNET and Backroom EXPAK +kryptolan 65 KRYPTOLAN # Kryptolan +rvd 66 RVD # MIT Remote Virtual Disk Protocol +ippc 67 IPPC # Internet Pluribus Packet Core +# 68 # any distributed file system +sat-mon 69 SAT-MON # SATNET Monitoring +visa 70 VISA # VISA Protocol +ipcv 71 IPCV # Internet Packet Core Utility +cpnx 72 CPNX # Computer Protocol Network Executive +cphb 73 CPHB # Computer Protocol Heart Beat +wsn 74 WSN # Wang Span Network +pvp 75 PVP # Packet Video Protocol +br-sat-mon 76 BR-SAT-MON # Backroom SATNET Monitoring +sun-nd 77 SUN-ND # SUN ND PROTOCOL-Temporary +wb-mon 78 WB-MON # WIDEBAND Monitoring +wb-expak 79 WB-EXPAK # WIDEBAND EXPAK +iso-ip 80 ISO-IP # ISO Internet Protocol +vmtp 81 VMTP # Versatile Message Transport +secure-vmtp 82 SECURE-VMTP # SECURE-VMTP +vines 83 VINES # VINES +ttp 84 TTP # TTP +nsfnet-igp 85 NSFNET-IGP # NSFNET-IGP +dgp 86 DGP # Dissimilar Gateway Protocol +tcf 87 TCF # TCF +eigrp 88 EIGRP # Enhanced Interior Routing Protocol (Cisco) +ospf 89 OSPFIGP # Open Shortest Path First IGP +sprite-rpc 90 Sprite-RPC # Sprite RPC Protocol +larp 91 LARP # Locus Address Resolution Protocol +mtp 92 MTP # Multicast Transport Protocol +ax.25 93 AX.25 # AX.25 Frames +ipip 94 IPIP # Yet Another IP encapsulation +micp 95 MICP # Mobile Internetworking Control Pro. +scc-sp 96 SCC-SP # Semaphore Communications Sec. Pro. +etherip 97 ETHERIP # Ethernet-within-IP Encapsulation +encap 98 ENCAP # Yet Another IP encapsulation +# 99 # any private encryption scheme +gmtp 100 GMTP # GMTP +ifmp 101 IFMP # Ipsilon Flow Management Protocol +pnni 102 PNNI # PNNI over IP +pim 103 PIM # Protocol Independent Multicast +aris 104 ARIS # ARIS +scps 105 SCPS # SCPS +qnx 106 QNX # QNX +a/n 107 A/N # Active Networks +ipcomp 108 IPComp # IP Payload Compression Protocol +snp 109 SNP # Sitara Networks Protocol +compaq-peer 110 Compaq-Peer # Compaq Peer Protocol +ipx-in-ip 111 IPX-in-IP # IPX in IP +vrrp 112 VRRP # Virtual Router Redundancy Protocol +pgm 113 PGM # PGM Reliable Transport Protocol +# 114 # any 0-hop protocol +l2tp 115 L2TP # Layer Two Tunneling Protocol +ddx 116 DDX # D-II Data Exchange +iatp 117 IATP # Interactive Agent Transfer Protocol +stp 118 STP # Schedule Transfer +srp 119 SRP # SpectraLink Radio Protocol +uti 120 UTI # UTI +smp 121 SMP # Simple Message Protocol +sm 122 SM # SM +ptp 123 PTP # Performance Transparency Protocol +isis 124 ISIS # ISIS over IPv4 +fire 125 FIRE +crtp 126 CRTP # Combat Radio Transport Protocol +crdup 127 CRUDP # Combat Radio User Datagram +sscopmce 128 SSCOPMCE +iplt 129 IPLT +sps 130 SPS # Secure Packet Shield +pipe 131 PIPE # Private IP Encapsulation within IP +sctp 132 SCTP # Stream Control Transmission Protocol +fc 133 FC # Fibre Channel +# rsvp-e2e-ignore 134 RSVP-E2E-IGNORE +# 134-254 # Unassigned +# 255 # Reserved diff --git a/devices/ZP120/filesystems/prodfs/etc/resolv.conf b/devices/ZP120/filesystems/prodfs/etc/resolv.conf new file mode 120000 index 0000000..7e54f7a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/resolv.conf @@ -0,0 +1 @@ +/var/run/resolv.conf \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/etc/rpc b/devices/ZP120/filesystems/prodfs/etc/rpc new file mode 100644 index 0000000..a80522f --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/rpc @@ -0,0 +1,68 @@ +#ident "@(#)rpc 1.11 95/07/14 SMI" /* SVr4.0 1.2 */ +# +# rpc +# +portmapper 100000 portmap sunrpc rpcbind +rstatd 100001 rstat rup perfmeter rstat_svc +rusersd 100002 rusers +nfs 100003 nfsprog +ypserv 100004 ypprog +mountd 100005 mount showmount +ypbind 100007 +walld 100008 rwall shutdown +yppasswdd 100009 yppasswd +etherstatd 100010 etherstat +rquotad 100011 rquotaprog quota rquota +sprayd 100012 spray +3270_mapper 100013 +rje_mapper 100014 +selection_svc 100015 selnsvc +database_svc 100016 +rexd 100017 rex +alis 100018 +sched 100019 +llockmgr 100020 +nlockmgr 100021 +x25.inr 100022 +statmon 100023 +status 100024 +bootparam 100026 +ypupdated 100028 ypupdate +keyserv 100029 keyserver +sunlink_mapper 100033 +tfsd 100037 +nsed 100038 +nsemntd 100039 +showfhd 100043 showfh +ioadmd 100055 rpc.ioadmd +NETlicense 100062 +sunisamd 100065 +debug_svc 100066 dbsrv +ypxfrd 100069 rpc.ypxfrd +bugtraqd 100071 +kerbd 100078 +event 100101 na.event # SunNet Manager +logger 100102 na.logger # SunNet Manager +sync 100104 na.sync +hostperf 100107 na.hostperf +activity 100109 na.activity # SunNet Manager +hostmem 100112 na.hostmem +sample 100113 na.sample +x25 100114 na.x25 +ping 100115 na.ping +rpcnfs 100116 na.rpcnfs +hostif 100117 na.hostif +etherif 100118 na.etherif +iproutes 100120 na.iproutes +layers 100121 na.layers +snmp 100122 na.snmp snmp-cmc snmp-synoptics snmp-unisys snmp-utk +traffic 100123 na.traffic +nfs_acl 100227 +sadmind 100232 +nisd 100300 rpc.nisd +nispasswd 100303 rpc.nispasswdd +ufsd 100233 ufsd +pcnfsd 150001 pcnfs +amd 300019 amq +bwnfsd 545580417 +fypxfrd 600100069 freebsd-ypxfrd diff --git a/devices/ZP120/filesystems/prodfs/etc/runanacapa b/devices/ZP120/filesystems/prodfs/etc/runanacapa new file mode 100755 index 0000000..794dd22 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/runanacapa @@ -0,0 +1,27 @@ +#!/bin/sh +while [ -f /var/run/waitforip ]; do + sleep 1 +done +if [ -f /var/run/upgradeinfo ]; then + mkdir /tmp + rm /jffs/upgrade_tmp_prev.log + mv /tmp/upgrade.log /jffs/upgrade_tmp_prev.log + echo Running upgrade ... + /bin/upgrade >> /tmp/upgrade.log 2>&1 + rr=$? + echo RESULT = $rr >> /tmp/upgrade.log + rm /var/run/upgradeinfo + exit $rr +fi +for X in /tmp/smb/* +do + if [ -d "$X" ] + then + umount "$X" + rmdir "$X" + fi +done +while [ -f /var/run/stopanacapa ]; do + sleep 10 +done +exec /opt/bin/anacapactl start-demo diff --git a/devices/ZP120/filesystems/prodfs/etc/scripts/domnt.sh b/devices/ZP120/filesystems/prodfs/etc/scripts/domnt.sh new file mode 100755 index 0000000..9071e82 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/scripts/domnt.sh @@ -0,0 +1,46 @@ +#!/bin/sh + +# default settings +IP="" +HOME="/home" + +# parse if called with one command line argument +if [ "$#" = "1" ]; then + IP="$1" +fi + +# parse if called with two command line arguments +if [ "$#" = "2" ]; then + IP="$1" + HOME="$2" +fi + +if [ "$IP" = "" ]; then + # argument 1 is required and argument 2 is optional + echo "usage: $0 [home_absolute_path]" + echo " examples: $0 10.20.32.237" + echo " $0 10.20.1.15 /home" + exit 1 +fi + +if [ ! -f /jffs/sunrpc.o ]; then + ARCH=`uname -m` + if [ "$ARCH" = "sh4" ]; then + wget -O /jffs/sunrpc.o http://10.20.32.240/~build/nfs/sh4/sunrpc.o + wget -O /jffs/lockd.o http://10.20.32.240/~build/nfs/sh4/lockd.o + wget -O /jffs/nfs.o http://10.20.32.240/~build/nfs/sh4/nfs.o + elif [ "$ARCH" = "ppc" ]; then + wget -O /jffs/sunrpc.o http://10.20.32.240/~build/nfs/ppc/sunrpc.o + wget -O /jffs/lockd.o http://10.20.32.240/~build/nfs/ppc/lockd.o + wget -O /jffs/nfs.o http://10.20.32.240/~build/nfs/ppc/nfs.o + else + echo "error: modules have not been built for the '${ARCH}' architecture" + exit 1 + fi +fi + +insmod /jffs/sunrpc.o +insmod /jffs/lockd.o +insmod /jffs/nfs.o + +/bin/mount -t nfs -o nolock,soft,vers=2 ${IP}:"${HOME}" /mnt diff --git a/devices/ZP120/filesystems/prodfs/etc/scripts/run_sshd.sh b/devices/ZP120/filesystems/prodfs/etc/scripts/run_sshd.sh new file mode 100755 index 0000000..698d51c --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/scripts/run_sshd.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# Copyright (c) 2019, Sonos, Inc. All rights reserved. + +exec /usr/sbin/telnetd diff --git a/devices/ZP120/filesystems/prodfs/etc/services b/devices/ZP120/filesystems/prodfs/etc/services new file mode 100644 index 0000000..2a4c59d --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/services @@ -0,0 +1,407 @@ +# /etc/services: +# $Id: services,v 1.4 1997/05/20 19:41:21 tobias Exp $ +# +# Network services, Internet style +# +# Note that it is presently the policy of IANA to assign a single well-known +# port number for both TCP and UDP; hence, most entries here have two entries +# even if the protocol doesn't support UDP operations. +# Updated from RFC 1700, ``Assigned Numbers'' (October 1994). Not all ports +# are included, only the more common ones. + +tcpmux 1/tcp # TCP port service multiplexer +echo 7/tcp +echo 7/udp +discard 9/tcp sink null +discard 9/udp sink null +systat 11/tcp users +daytime 13/tcp +daytime 13/udp +netstat 15/tcp +qotd 17/tcp quote +msp 18/tcp # message send protocol +msp 18/udp # message send protocol +chargen 19/tcp ttytst source +chargen 19/udp ttytst source +ftp-data 20/tcp +ftp 21/tcp +fsp 21/udp fspd +ssh 22/tcp # SSH Remote Login Protocol +ssh 22/udp # SSH Remote Login Protocol +telnet 23/tcp +# 24 - private +smtp 25/tcp mail +# 26 - unassigned +time 37/tcp timserver +time 37/udp timserver +rlp 39/udp resource # resource location +nameserver 42/tcp name # IEN 116 +whois 43/tcp nicname +re-mail-ck 50/tcp # Remote Mail Checking Protocol +re-mail-ck 50/udp # Remote Mail Checking Protocol +domain 53/tcp nameserver # name-domain server +domain 53/udp nameserver +mtp 57/tcp # deprecated +bootps 67/tcp # BOOTP server +bootps 67/udp +bootpc 68/tcp # BOOTP client +bootpc 68/udp +tftp 69/udp +gopher 70/tcp # Internet Gopher +gopher 70/udp +rje 77/tcp netrjs +finger 79/tcp +www 80/tcp http # WorldWideWeb HTTP +www 80/udp # HyperText Transfer Protocol +link 87/tcp ttylink +kerberos 88/tcp kerberos5 krb5 kerberos-sec # Kerberos v5 +kerberos 88/udp kerberos5 krb5 kerberos-sec # Kerberos v5 +supdup 95/tcp +# 100 - reserved +hostnames 101/tcp hostname # usually from sri-nic +iso-tsap 102/tcp tsap # part of ISODE. +csnet-ns 105/tcp cso-ns # also used by CSO name server +csnet-ns 105/udp cso-ns +# unfortunately the poppassd (Eudora) uses a port which has already +# been assigned to a different service. We list the poppassd as an +# alias here. This should work for programs asking for this service. +# (due to a bug in inetd the 3com-tsmux line is disabled) +#3com-tsmux 106/tcp poppassd +#3com-tsmux 106/udp poppassd +rtelnet 107/tcp # Remote Telnet +rtelnet 107/udp +pop2 109/tcp postoffice pop-2 # POP version 2 +pop2 109/udp pop-2 +pop3 110/tcp pop-3 # POP version 3 +pop3 110/udp pop-3 +sunrpc 111/tcp portmapper # RPC 4.0 portmapper TCP +sunrpc 111/udp portmapper # RPC 4.0 portmapper UDP +auth 113/tcp authentication tap ident +sftp 115/tcp +uucp-path 117/tcp +nntp 119/tcp readnews untp # USENET News Transfer Protocol +ntp 123/tcp +ntp 123/udp # Network Time Protocol +netbios-ns 137/tcp # NETBIOS Name Service +netbios-ns 137/udp +netbios-dgm 138/tcp # NETBIOS Datagram Service +netbios-dgm 138/udp +netbios-ssn 139/tcp # NETBIOS session service +netbios-ssn 139/udp +imap2 143/tcp imap # Interim Mail Access Proto v2 +imap2 143/udp imap +snmp 161/udp # Simple Net Mgmt Proto +snmp-trap 162/udp snmptrap # Traps for SNMP +cmip-man 163/tcp # ISO mgmt over IP (CMOT) +cmip-man 163/udp +cmip-agent 164/tcp +cmip-agent 164/udp +mailq 174/tcp # Mailer transport queue for Zmailer +mailq 174/udp # Mailer transport queue for Zmailer +xdmcp 177/tcp # X Display Mgr. Control Proto +xdmcp 177/udp +nextstep 178/tcp NeXTStep NextStep # NeXTStep window +nextstep 178/udp NeXTStep NextStep # server +bgp 179/tcp # Border Gateway Proto. +bgp 179/udp +prospero 191/tcp # Cliff Neuman's Prospero +prospero 191/udp +irc 194/tcp # Internet Relay Chat +irc 194/udp +smux 199/tcp # SNMP Unix Multiplexer +smux 199/udp +at-rtmp 201/tcp # AppleTalk routing +at-rtmp 201/udp +at-nbp 202/tcp # AppleTalk name binding +at-nbp 202/udp +at-echo 204/tcp # AppleTalk echo +at-echo 204/udp +at-zis 206/tcp # AppleTalk zone information +at-zis 206/udp +qmtp 209/tcp # The Quick Mail Transfer Protocol +qmtp 209/udp # The Quick Mail Transfer Protocol +z3950 210/tcp wais # NISO Z39.50 database +z3950 210/udp wais +ipx 213/tcp # IPX +ipx 213/udp +imap3 220/tcp # Interactive Mail Access +imap3 220/udp # Protocol v3 +rpc2portmap 369/tcp +rpc2portmap 369/udp # Coda portmapper +codaauth2 370/tcp +codaauth2 370/udp # Coda authentication server +ulistserv 372/tcp # UNIX Listserv +ulistserv 372/udp +ldap 389/tcp # Lightweight Directory Access Protocol +ldap 389/udp # Lightweight Directory Access Protocol +https 443/tcp # MCom +https 443/udp # MCom +snpp 444/tcp # Simple Network Paging Protocol +snpp 444/udp # Simple Network Paging Protocol +saft 487/tcp # Simple Asynchronous File Transfer +saft 487/udp # Simple Asynchronous File Transfer +npmp-local 610/tcp dqs313_qmaster # npmp-local / DQS +npmp-local 610/udp dqs313_qmaster # npmp-local / DQS +npmp-gui 611/tcp dqs313_execd # npmp-gui / DQS +npmp-gui 611/udp dqs313_execd # npmp-gui / DQS +hmmp-ind 612/tcp dqs313_intercell# HMMP Indication / DQS +hmmp-ind 612/udp dqs313_intercell# HMMP Indication / DQS +ipp 631/tcp # Internet Printing Protocol +ipp 631/udp # Internet Printing Protocol +# +# UNIX specific services +# +exec 512/tcp +biff 512/udp comsat +login 513/tcp +who 513/udp whod +shell 514/tcp cmd # no passwords used +syslog 514/udp +printer 515/tcp spooler # line printer spooler +talk 517/udp +ntalk 518/udp +route 520/udp router routed # RIP +timed 525/udp timeserver +tempo 526/tcp newdate +courier 530/tcp rpc +conference 531/tcp chat +netnews 532/tcp readnews +netwall 533/udp # -for emergency broadcasts +gdomap 538/tcp # GNUstep distributed objects +gdomap 538/udp # GNUstep distributed objects +uucp 540/tcp uucpd # uucp daemon +afpovertcp 548/tcp # AFP over TCP +afpovertcp 548/udp # AFP over TCP +remotefs 556/tcp rfs_server rfs # Brunhoff remote filesystem +klogin 543/tcp # Kerberized `rlogin' (v5) +kshell 544/tcp krcmd # Kerberized `rsh' (v5) +nntps 563/tcp snntp # NNTP over SSL +nntps 563/udp snntp # NNTP over SSL +ldaps 636/tcp # LDAP over SSL +ldaps 636/udp # LDAP over SSL +kerberos-adm 749/tcp # Kerberos `kadmin' (v5) +# +webster 765/tcp # Network dictionary +webster 765/udp +rsync 873/tcp # rsync +rsync 873/udp # rsync +imaps 993/tcp # IMAP over SSL +imaps 993/udp # IMAP over SSL +ircs 994/tcp # IRC over SSL +ircs 994/udp # IRC over SSL +pop3s 995/tcp # POP-3 over SSL +pop3s 995/udp # POP-3 over SSL +# +# From ``Assigned Numbers'': +# +#> The Registered Ports are not controlled by the IANA and on most systems +#> can be used by ordinary user processes or programs executed by ordinary +#> users. +# +#> Ports are used in the TCP [45,106] to name the ends of logical +#> connections which carry long term conversations. For the purpose of +#> providing services to unknown callers, a service contact port is +#> defined. This list specifies the port used by the server process as its +#> contact port. While the IANA can not control uses of these ports it +#> does register or list uses of these ports as a convienence to the +#> community. +# +socks 1080/tcp # socks proxy server +socks 1080/udp # socks proxy server +lotusnote 1352/tcp lotusnotes # Lotus Note +lotusnote 1352/udp lotusnotes # Lotus Note +ingreslock 1524/tcp +ingreslock 1524/udp +prospero-np 1525/tcp # Prospero non-privileged +prospero-np 1525/udp +datametrics 1645/tcp old-radius # datametrics / old radius entry +datametrics 1645/udp old-radius # datametrics / old radius entry +sa-msg-port 1646/tcp old-radacct # sa-msg-port / old radacct entry +sa-msg-port 1646/udp old-radacct # sa-msg-port / old radacct entry +radius 1812/tcp # Radius +radius 1812/udp # Radius +radacct 1813/tcp # Radius Accounting +radacct 1813/udp # Radius Accounting +rtcm-sc104 2101/tcp # RTCM SC-104 IANA 1/29/99 +rtcm-sc104 2101/udp # RTCM SC-104 IANA 1/29/99 +cvspserver 2401/tcp # CVS client/server operations +cvspserver 2401/udp # CVS client/server operations +venus 2430/tcp # codacon port +venus 2430/udp # Venus callback/wbc interface +venus-se 2431/tcp # tcp side effects +venus-se 2431/udp # udp sftp side effect +codasrv 2432/tcp # not used +codasrv 2432/udp # server port +codasrv-se 2433/tcp # tcp side effects +codasrv-se 2433/udp # udp sftp side effect +dict 2628/tcp # Dictionary server +dict 2628/udp # Dictionary server +gds_db 3050/tcp # InterBase server +gds_db 3050/udp # InterBase server +icpv2 3130/tcp icp # Internet Cache Protocol (Squid) +icpv2 3130/udp icp # Internet Cache Protocol (Squid) +mysql 3306/tcp # MySQL +mysql 3306/udp # MySQL +rfe 5002/tcp # Radio Free Ethernet +rfe 5002/udp # Actually uses UDP only +cfengine 5308/tcp # CFengine +cfengine 5308/udp # CFengine +x11 6000/tcp x11-0 # X windows system +x11 6000/udp x11-0 # X windows system +x11-1 6001/tcp # X windows system +x11-1 6001/udp # X windows system +x11-2 6002/tcp # X windows system +x11-2 6002/udp # X windows system +x11-3 6003/tcp # X windows system +x11-3 6003/udp # X windows system +x11-4 6004/tcp # X windows system +x11-4 6004/udp # X windows system +x11-5 6005/tcp # X windows system +x11-5 6005/udp # X windows system +x11-6 6006/tcp # X windows system +x11-6 6006/udp # X windows system +x11-7 6007/tcp # X windows system +x11-7 6007/udp # X windows system +afs3-fileserver 7000/tcp bbs # file server itself +afs3-fileserver 7000/udp bbs # file server itself +afs3-callback 7001/tcp # callbacks to cache managers +afs3-callback 7001/udp # callbacks to cache managers +afs3-prserver 7002/tcp # users & groups database +afs3-prserver 7002/udp # users & groups database +afs3-vlserver 7003/tcp # volume location database +afs3-vlserver 7003/udp # volume location database +afs3-kaserver 7004/tcp # AFS/Kerberos authentication +afs3-kaserver 7004/udp # AFS/Kerberos authentication +afs3-volser 7005/tcp # volume managment server +afs3-volser 7005/udp # volume managment server +afs3-errors 7006/tcp # error interpretation service +afs3-errors 7006/udp # error interpretation service +afs3-bos 7007/tcp # basic overseer process +afs3-bos 7007/udp # basic overseer process +afs3-update 7008/tcp # server-to-server updater +afs3-update 7008/udp # server-to-server updater +afs3-rmtsys 7009/tcp # remote cache manager service +afs3-rmtsys 7009/udp # remote cache manager service +font-service 7100/tcp xfs # X Font Service +font-service 7100/udp xfs # X Font Service +wnn6 22273/tcp # wnn6 +wnn6 22273/udp # wnn6 + +#========================================================================= +# The remaining port numbers are not as allocated by IANA. +# +# Kerberos (Project Athena/MIT) services +# Note that these are for Kerberos v4, and are unofficial. Sites running +# v4 should uncomment these and comment out the v5 entries above. +# +kerberos4 750/udp kerberos-iv kdc # Kerberos (server) udp +kerberos4 750/tcp kerberos-iv kdc # Kerberos (server) tcp +kerberos_master 751/udp # Kerberos authentication +kerberos_master 751/tcp # Kerberos authentication +passwd_server 752/udp # Kerberos passwd server +krb_prop 754/tcp # Kerberos slave propagation +krbupdate 760/tcp kreg # Kerberos registration +kpasswd 761/tcp kpwd # Kerberos "passwd" +swat 901/tcp # swat +kpop 1109/tcp # Pop with Kerberos +knetd 2053/tcp # Kerberos de-multiplexor +zephyr-srv 2102/udp # Zephyr server +zephyr-clt 2103/udp # Zephyr serv-hm connection +zephyr-hm 2104/udp # Zephyr hostmanager +eklogin 2105/tcp # Kerberos encrypted rlogin +# Hmmm. Are we using Kv4 or Kv5 now? Worrying. +# The following is probably Kerberos v5 --- ajt@debian.org (11/02/2000) +kx 2111/tcp # X over Kerberos +# +# Unofficial but necessary (for NetBSD) services +# +supfilesrv 871/tcp # SUP server +supfiledbg 1127/tcp # SUP debugging +# +# Datagram Delivery Protocol services +# +rtmp 1/ddp # Routing Table Maintenance Protocol +nbp 2/ddp # Name Binding Protocol +echo 4/ddp # AppleTalk Echo Protocol +zip 6/ddp # Zone Information Protocol +# +# Services added for the Debian GNU/Linux distribution +# +linuxconf 98/tcp # LinuxConf +poppassd 106/tcp # Eudora +poppassd 106/udp # Eudora +ssmtp 465/tcp smtps # SMTP over SSL +nqs 607/tcp # Network Queuing system +moira_db 775/tcp # Moira database +moira_update 777/tcp # Moira update protocol. +moira_ureg 779/udp # Moira user registration. +omirr 808/tcp omirrd # online mirror +omirr 808/udp omirrd # online mirror +customs 1001/tcp # pmake customs server +customs 1001/udp # pmake customs server +rmiregistry 1099/tcp # Java RMI Registry +skkserv 1178/tcp # skk jisho server port +rmtcfg 1236/tcp # Gracilis Packeten remote config server +xtel 1313/tcp # french minitel +xtelw 1314/tcp # french minitel +support 1529/tcp # GNATS +cfinger 2003/tcp # GNU Finger +ndtp 2010/tcp # Network dictionary transfer protocol +ninstall 2150/tcp # ninstall service +ninstall 2150/udp # ninstall service +zebrasrv 2600/tcp # zebra service +zebra 2601/tcp # zebra vty +ripd 2602/tcp # RIPd vty +ripngd 2603/tcp # RIPngd vty +ospfd 2604/tcp # OSPFd vty +bgpd 2605/tcp # BGPd vty +ospf6d 2606/tcp # OSPF6d vty +afbackup 2988/tcp # Afbackup system +afbackup 2988/udp # Afbackup system +afmbackup 2989/tcp # Afmbackup system +afmbackup 2989/udp # Afmbackup system +xtell 4224/tcp # xtell server +fax 4557/tcp # FAX transmission service (old) +hylafax 4559/tcp # HylaFAX client-server protocol (new) +pcrd 5151/tcp # PCR-1000 Daemon +noclog 5354/tcp # noclogd with TCP (nocol) +noclog 5354/udp # noclogd with UDP (nocol) +hostmon 5355/tcp # hostmon uses TCP (nocol) +hostmon 5355/udp # hostmon uses UDP (nocol) +postgres 5432/tcp # POSTGRES +postgres 5432/udp # POSTGRES +mrtd 5674/tcp # MRT Routing Daemon +bgpsim 5675/tcp # MRT Routing Simulator +canna 5680/tcp # cannaserver +sane 6566/tcp saned # SANE network scanner daemon +ircd 6667/tcp # Internet Relay Chat +ircd 6667/udp # Internet Relay Chat +ircd-dalnet 7000/tcp # IRC - Dalnet +ircd-dalnet 7000/udp # IRC - Dalnet +webcache 8080/tcp # WWW caching service +webcache 8080/udp # WWW caching service +tproxy 8081/tcp # Transparent Proxy +tproxy 8081/udp # Transparent Proxy +omniorb 8088/tcp # OmniORB +omniorb 8088/udp # OmniORB +mandelspawn 9359/udp mandelbrot # network mandelbrot +amanda 10080/udp # amanda backup services +kamanda 10081/tcp # amanda backup services (Kerberos) +kamanda 10081/udp # amanda backup services (Kerberos) +amandaidx 10082/tcp # amanda backup services +amidxtape 10083/tcp # amanda backup services +isdnlog 20011/tcp # isdn logging system +isdnlog 20011/udp # isdn logging system +vboxd 20012/tcp # voice box system +vboxd 20012/udp # voice box system +binkp 24554/tcp # Binkley +binkp 24554/udp # Binkley +asp 27374/tcp # Address Search Protocol +asp 27374/udp # Address Search Protocol +tfido 60177/tcp # Ifmail +tfido 60177/udp # Ifmail +fido 60179/tcp # Ifmail +fido 60179/udp # Ifmail + +# Local services + diff --git a/devices/ZP120/filesystems/prodfs/etc/shells b/devices/ZP120/filesystems/prodfs/etc/shells new file mode 100644 index 0000000..14e9376 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/shells @@ -0,0 +1,5 @@ +/bin/bash +/bin/sh +/bin/ash +/bin/ash.static +/bin/sash diff --git a/devices/ZP120/filesystems/prodfs/etc/syslog.conf b/devices/ZP120/filesystems/prodfs/etc/syslog.conf new file mode 100644 index 0000000..0955d4b --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/etc/syslog.conf @@ -0,0 +1,71 @@ +# /etc/syslog.conf Configuration file for syslogd. +# +# For more information see syslog.conf(5) +# manpage. + +# +# First some standard logfiles. Log by facility. +# + +auth,authpriv.* /var/log/auth.log +*.*;auth,authpriv.none -/var/log/syslog +#cron.* /var/log/cron.log +daemon.* -/var/log/daemon.log +kern.* -/var/log/kern.log +lpr.* -/var/log/lpr.log +mail.* /var/log/mail.log +user.* -/var/log/user.log +uucp.* -/var/log/uucp.log + +# +# Logging for the mail system. Split it up so that +# it is easy to write scripts to parse these files. +# +mail.info -/var/log/mail.info +mail.warn -/var/log/mail.warn +mail.err /var/log/mail.err + +# Logging for INN news system +# +#news.crit /var/log/news/news.crit +#news.err /var/log/news/news.err +#news.notice -/var/log/news/news.notice + +# +# Some `catch-all' logfiles. +# +*.=debug;\ + auth,authpriv.none;\ + news.none;mail.none -/var/log/debug +*.=info;*.=notice;*.=warn;\ + auth,authpriv.none;\ + cron,daemon.none;\ + mail,news.none -/var/log/messages + +# +# Emergencies are sent to everybody logged in. +# +*.emerg * + +# +# I like to have messages displayed on the console, but only on a virtual +# console I usually leave idle. +# +#daemon,mail.*;\ +# news.=crit;news.=err;news.=notice;\ +# *.=debug;*.=info;\ +# *.=notice;*.=warn /dev/tty8 + +# The named pipe /dev/xconsole is for the `xconsole' utility. To use it, +# you must invoke `xconsole' with the `-file' option: +# +# $ xconsole -file /dev/xconsole [...] +# +# NOTE: adjust the list below, or you'll go crazy if you have a reasonably +# busy site.. +# +#daemon.*;mail.*;\ +# news.crit;news.err;news.notice;\ +# *.=debug;*.=info;\ +# *.=notice;*.=warn |/dev/xconsole + diff --git a/devices/ZP120/filesystems/prodfs/modules/audiodev.o b/devices/ZP120/filesystems/prodfs/modules/audiodev.o new file mode 100644 index 0000000..2cb9f01 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/modules/audiodev.o differ diff --git a/devices/ZP120/filesystems/prodfs/modules/chk_driver.o b/devices/ZP120/filesystems/prodfs/modules/chk_driver.o new file mode 100644 index 0000000..3084c0f Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/modules/chk_driver.o differ diff --git a/devices/ZP120/filesystems/prodfs/opt/bin/anacapactl b/devices/ZP120/filesystems/prodfs/opt/bin/anacapactl new file mode 100755 index 0000000..1e0b12a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/bin/anacapactl @@ -0,0 +1,122 @@ +#! /bin/sh +anacapaHome=/opt +anacapaPidFile=$anacapaHome/log/anacapa.pid +anacapaBin="$anacapaHome/bin/anacapad" +anacapaStart="$anacapaBin -c $anacapaHome/conf/anacapa.conf" + +PATH=/usr/bin:/bin:/usr/sbin:/sbin:$anacapaHome/bin +export PATH +LD_LIBRARY_PATH=$anacapaHome/lib +export LD_LIBRARY_PATH +ANACAPA_LIBDIR=$anacapaHome/lib +export ANACAPA_LIBDIR + +arch=`uname -m` +# +# CheckRunning +# Check to see if Anacapa is running, and if so, set the "pid" var. +# +CheckRunning() { + pid="" + if [ -f $anacapaPidFile ]; then + pid=`cat $anacapaPidFile 2> /dev/null` + fi + + if [ -n "$pid" ]; then + kill -0 $pid 2> /dev/null + if [ $? != 0 ]; then + rm -f $anacapaPidFile + pid="" + fi + else + rm -f $anacapaPidFile + pid="" + fi +} + +# +# Stop +# Stop the anacapa and wait until the primary process is dead. +# +Stop() { + kill -15 $pid + CheckRunning + while [ -n "$pid" ]; do + sleep 1 + CheckRunning + done +} + +CheckRunning + +# +# Hup +# Hup the anacapa +# +Hup() { + kill -HUP $pid +} + +case "$1" in + 'start') + if [ -n "$pid" ]; then + echo "anacapad is already running (pid $pid)" + exit 1 + fi + if [ "$arch" = "sh4" ]; then + /sbin/gdbserver 10.10.1.237:1234 $anacapaStart -d 10 + else + gdb $SONOS_GDB_ARGS --args $anacapaStart -d 10 + fi + exit $? + ;; + + 'start-demo') + if [ -n "$pid" ]; then + echo "anacapad is already running (pid $pid)" + exit 1 + fi + + exec $anacapaStart + ;; + + 'restart') + if [ -n "$pid" ]; then + Stop + fi + if [ "$arch" = "sh4" ]; then + /sbin/gdbserver 10.10.1.237:1234 $anacapaStart -d 10 + else + gdb $SONOS_GDB_ARGS --args $anacapaStart -d 10 + fi + exit $? + ;; + + 'restart-demo') + if [ -n "$pid" ]; then + Stop + fi + + $anacapaStart + exit $? + ;; + + 'stop') + if [ -n "$pid" ]; then + Stop + fi + exit 0 + ;; + + 'hup') + if [ -n "$pid" ]; then + Hup + fi + exit 0 + ;; + + *) + echo "Usage: $0 { start | start-demo | stop | restart | restart-demo | hup }" + exit 1 + ;; +esac diff --git a/devices/ZP120/filesystems/prodfs/opt/bin/anacapad b/devices/ZP120/filesystems/prodfs/opt/bin/anacapad new file mode 100755 index 0000000..c96de71 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/opt/bin/anacapad differ diff --git a/devices/ZP120/filesystems/prodfs/opt/buzzers/0.mp3 b/devices/ZP120/filesystems/prodfs/opt/buzzers/0.mp3 new file mode 100644 index 0000000..ff1c25e Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/opt/buzzers/0.mp3 differ diff --git a/devices/ZP120/filesystems/prodfs/opt/buzzers/1.mp3 b/devices/ZP120/filesystems/prodfs/opt/buzzers/1.mp3 new file mode 100644 index 0000000..afa19fb Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/opt/buzzers/1.mp3 differ diff --git a/devices/ZP120/filesystems/prodfs/opt/buzzers/100.mp3 b/devices/ZP120/filesystems/prodfs/opt/buzzers/100.mp3 new file mode 100644 index 0000000..b64cb65 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/opt/buzzers/100.mp3 differ diff --git a/devices/ZP120/filesystems/prodfs/opt/conf/anacapa.conf b/devices/ZP120/filesystems/prodfs/opt/conf/anacapa.conf new file mode 100644 index 0000000..5378f1d --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/conf/anacapa.conf @@ -0,0 +1,69 @@ +# Anacapa Web Server configuration file + +# Server TCP Port for HTTP operation +Port 1400 + +# Port for HTTPS traffic (0 for disabled) +SSLPort 1443 + +# Port for HTTPS traffic for household members only (0 for disabled) +SecureHHSSLPort 1843 + +# The Server Root (UNIX systems style) +ServerRoot /opt + +# The Path option specifies the web files path. +Path htdocs + +# The Default option contains the name of the files the server should +# look for when only a path is given (e.g. http://myserver/info/). +Default index.html + +# The TimeOut option tells the server how much seconds to wait for +# an idle connection before closing it. +TimeOut 10 + +# The MimeTypes option specifies the location of the file +# containing the mapping of MIME types and files extensions +MimeTypes conf/mime.types + +# The path of the diagnostic file +DiagFile log/anacapa.trace + +# The default max level for diagnostics logged to DiagFile +DiagLevel default=1 + +# Max_Conn is the maximum number of simultaneous connections +# This should be greater than NumThreads to support persistent +# connections. The difference is the number of simultaneous +# persistent connections supported. +MaxConn 8 + +# NumThreads is the number of anacapa worker threads. +# Previously this was equal to MaxConn but now MaxConn needs to be +# greater than NumThreads to support persistent connections +NumThreads 4 + +# The file where the pid of the server is logged (UNIX specific) +PidFile log/anacapa.pid + +# Rincon-specific configuration settings +# JFFSRoot /tmp/jffs_1400 +# ZPMusicServicesBackstop ../../../../cc/anacapa/anacapa/pkg/htdocs/xml/musicservices.xml +# ZPTimeZonesBackstop ../../../../cc/anacapa/anacapa/pkg/htdocs/xml/timezones.xml + +# Override the default Model[.Submodel] of the ZP emulator. +#HackModel 8.1 + +# Special Logging for direct control +DiagFile log/anacapa.dc.trace +DiagLevel main=0,muse=3,cloudqueue=3,spot=3,spot_abr=3 +DiagMin 16384 +DiagMax 32768 + + + +DiagFile log/anacapa.snf.trace +DiagLevel main=0,advert=3,upnpeventing=3,ana_http=2,arpchecker=3,association=5,assoctracker=3 +DiagMin 8192 +DiagMax 16384 diff --git a/devices/ZP120/filesystems/prodfs/opt/conf/mime.types b/devices/ZP120/filesystems/prodfs/opt/conf/mime.types new file mode 100644 index 0000000..0bf5810 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/conf/mime.types @@ -0,0 +1,8 @@ +# MIME type Extension +text/html htm +text/html html +text/xml xml +text/xml xsl +text/css css +text/javascript js +image/png png diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/img/icon-S5.png b/devices/ZP120/filesystems/prodfs/opt/htdocs/img/icon-S5.png new file mode 100644 index 0000000..8cf96c7 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/opt/htdocs/img/icon-S5.png differ diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/img/icon-ZP120.png b/devices/ZP120/filesystems/prodfs/opt/htdocs/img/icon-ZP120.png new file mode 100644 index 0000000..30524bd Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/opt/htdocs/img/icon-ZP120.png differ diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/img/icon-ZP90.png b/devices/ZP120/filesystems/prodfs/opt/htdocs/img/icon-ZP90.png new file mode 100644 index 0000000..2b5fb58 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/opt/htdocs/img/icon-ZP90.png differ diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/pub b/devices/ZP120/filesystems/prodfs/opt/htdocs/pub new file mode 120000 index 0000000..0c17009 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/pub @@ -0,0 +1 @@ +/tmp/pub \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/review.js b/devices/ZP120/filesystems/prodfs/opt/htdocs/review.js new file mode 100644 index 0000000..d57d044 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/review.js @@ -0,0 +1,448 @@ +function trimAll( strValue ) { + var objRegExp = /^(\s*)$/; + + //check for all spaces + if(objRegExp.test(strValue)) { + strValue = strValue.replace(objRegExp, ''); + if( strValue.length == 0) + return strValue; + } + + //check for leading & trailing spaces + objRegExp = /^(\s*)([\W\w]*)(\b\s*$)/; + if(objRegExp.test(strValue)) { + //remove leading and trailing whitespace characters + strValue = strValue.replace(objRegExp, '$2'); + } + return strValue; +} + +var strengthData = new Array(); +var macAddrs = new Array(); +var macAddrsToZoneNames = new Array(); + +function finishDrawTable(tbodyID) { + var th, tr, td, txt, br; + var zp,nf,ofdm; + tbody = document.getElementById(tbodyID); + // create holder for accumulated tbody elements and text nodes + var frag = document.createDocumentFragment(); + // + // Make column headings + // + tr = document.createElement("tr"); + th = document.createElement("th"); tr.appendChild(th); + for (var i = 0; i < macAddrs.length; i++) { + if(macAddrs[i] != "eth0" && macAddrs[i] != "eth1") + { + th = document.createElement("th"); + txt = document.createTextNode("Strength to"); th.appendChild(txt); + br = document.createElement("br"); th.appendChild(br); + txt = document.createTextNode(macAddrs[i]); th.appendChild(txt); + br = document.createElement("br"); th.appendChild(br); + txt = document.createTextNode(macAddrsToZoneNames[macAddrs[i]]); th.appendChild(txt); + tr.appendChild(th); + } + } + frag.appendChild(tr); + // + // loop through data source + // + for (var i = 0; i < strengthData.length; i++) { + var sd = strengthData[i]; + tr = document.createElement("tr"); + + td = document.createElement("td"); + td.setAttribute("class", "ctr"); + + txt = document.createTextNode(sd.macAddr); td.appendChild(txt); + br = document.createElement("br"); td.appendChild(br); + + txt = document.createTextNode(macAddrsToZoneNames[sd.macAddr]); td.appendChild(txt); + br = document.createElement("br"); td.appendChild(br); + + for(var j = 0; j < sd.destinations.length; j++) + { + if(sd.pathCost == 0) + { + txt = document.createTextNode("Root Bridge"); td.appendChild(txt); + break; + } + else if(parseInt(sd.pathCost) == (parseInt(sd.destinations[j].pathCost) + parseInt(sd.destinations[j].designatedCost))) + { + if(sd.destinations[j].designatedCost == 0) + { + txt = document.createTextNode("Secondary Node"); td.appendChild(txt); + } + else + { + txt = document.createTextNode("Tertiary Node"); td.appendChild(txt); + } + break; + } + } + + br = document.createElement("br"); td.appendChild(br); + + txt = document.createTextNode(sd.noiseFloor); td.appendChild(txt); + br = document.createElement("br"); td.appendChild(br); + + txt = document.createTextNode(sd.weakSignal); td.appendChild(txt); + +//added color for ZonePlayer status + if(sd.noiseFloor && sd.weakSignal) + { + if( sd.noiseFloor.match( /Noise Floor: -(\d+), -(\d+), -(\d+)/ )) + nf = (parseInt(RegExp.$1) + parseInt(RegExp.$2) + parseInt(RegExp.$3))/3; + else if( sd.noiseFloor.match( /Noise Floor: -(\d+)/ )) + nf = RegExp.$1; + + if( sd.weakSignal.match( /OFDM Weak signal level: (\d+)/ )) + ofdm = RegExp.$1; + else if( sd.weakSignal.match( /OFDM ANI level: (\d+)/ )) + ofdm = (12 - parseInt(RegExp.$1)) / 2; // Map 0-9 to 6->1.5 + + if( nf > 94 && ofdm > 4 ) + td.style.background = "rgb(32,190,32)"; + else if( nf > 89 && ofdm > 3 ) + td.style.background = "rgb(255,255,32)"; + else if( nf > 84 && ofdm > 2 ) + td.style.background = "rgb(255,159,32)"; + else + td.style.background = "rgb(255,32,32)"; + } + tr.appendChild(td); + + for (var j = 0; j < macAddrs.length; j++) { + if(macAddrs[j] != "eth0" && macAddrs[j] != "eth1") + { + td = document.createElement("td"); + for (var k = 0; k < sd.destinations.length; k++) { + var dst = sd.destinations[k]; + if (dst.addr == macAddrs[j]) { + +//added color for Connection status + var temp=0,count=0; + var dstAvg = new Array(); + dstAvg[0] = dst.inA; + dstAvg[1] = dst.inB; + dstAvg[2] = dst.outA; + dstAvg[3] = dst.outB; + + for (var l = 0; l < dstAvg.length; l++) + { + if(dstAvg[l]) + { + temp += parseInt(dstAvg[l]); + count++; + } + } + + temp = temp/count; + + txt = document.createTextNode("Inbound: " + dst.inA + " " + dst.inB); + td.appendChild(txt); + br = document.createElement("br"); td.appendChild(br); + + txt = document.createTextNode("Outbound: " + dst.outA + " " + dst.outB); + td.appendChild(txt); + br = document.createElement("br"); td.appendChild(br); + + txt = document.createTextNode("STP state: " + dst.stpState); + if(dst.connects) + { + if(temp > 44) + td.style.background = "rgb(32,190,32)"; + else if(temp > 29) + td.style.background = "rgb(255,255,32)"; + else if(temp > 17) + td.style.background = "rgb(255,159,32)"; + else + td.style.background = "rgb(255,32,32)"; + } + else + { + td.style.background = "rgb(224,224,224)"; + } + + td.appendChild(txt); + + break; + } + } + tr.appendChild(td); + } + } + + frag.appendChild(tr); + } + if (!tbody.appendChild(frag)) { + alert("This browser doesn't support dynamic tables."); + } +} + +function addMacAddr(addr) { + for (var i = 0; i < macAddrs.length; i++) { + if (macAddrs[i] == addr) return; + } + macAddrs.push(addr); +} + +function sortByMACAddr(a, b) { + var x = a.macAddr; + var y = b.macAddr; + return ((x < y) ? -1 : ((x > y) ? 1 : 0)); +} + +function parseStpData(stpData, nodeDataObj) { + + var lines = stpData.value.split('\n'); + for (var l = 0; l < lines.length; l++) { + var words = trimAll(lines[l]).split(/\s+/); + if (words.length > 0) { + if (words[0] == "ath0" || words[0] == "eth0" || words[0] == "eth1") { + // + // This begins a new node section + // + if(words[3] == "tunnel") + { + toMAC = words[5]; // MAC address of destination + rSTP = words[10].replace(/[,\)]/g, ''); // remote STP state + } + else + { + toMAC = words[0]; + rSTP = words[0]; + } + // + // Find an existing destination object, or make a new one if it + // isn't there yet + // + var toNode = null; + for (var i = 0; i < nodeDataObj.destinations.length; i++) { + if (nodeDataObj.destinations[i].addr == toMAC) { + toNode = nodeDataObj.destinations[i]; + toNode.remoteState = rSTP; + break; + } + } + if (toNode == null) { + toNode = new Object; + toNode.addr = toMAC; + toNode.remoteState = rSTP; + nodeDataObj.destinations.push(toNode); + } + // + // Now, parse the rest of the lines in this section. The + // section is deliniated by a blank line. + // + while (++l < lines.length) { + var line = trimAll(lines[l]); + if (line.length == 0) break; + words = line.split(/\s+/); + if (words[0] == "port") { + toNode.portID = words[2]; + toNode.stpState = words[4]; + } else if (words[1] == "root") { + toNode.designatedRoot = words[2]; + toNode.pathCost = words[5]; + } else if (words[1] == "bridge") { + toNode.designatedBridge = words[2]; + toNode.msgAgeTimer = words[6]; + } else if (words[1] == "port") { + toNode.designatedPort = words[2]; + toNode.fwdDelayTimer = words[6]; + } else if (words[1] == "cost") { + toNode.designatedCost = words[2]; + toNode.holdTimer = words[5]; + } else if (words[0] == "flags") { + toNode.flags = ""; + for (var i = 1; i < words.length; i++) { + if (toNode.flags.length > 0) + toNode.flags = toNode.flags + ","; + toNode.flags = toNode.flags + words[i]; + } + } + } + if (toNode.remoteState == "forwarding" && toNode.stpState == "forwarding") + toNode.connects = 1; + else + toNode.connects = 0; + + } else if (words[0] == "bridge") { + nodeDataObj.bridgeID = words[2]; + } else if (words[0] == "designated" && words[1] == "root") { + nodeDataObj.designatedRoot = words[2]; + } else if (words[0] == "root") { + nodeDataObj.rootPort = words[2]; + nodeDataObj.pathCost = words[5]; + } else if (words[0] == "max") { + nodeDataObj.maxAge = words[2]; + nodeDataObj.bridgeMaxAge = words[6]; + } else if (words[0] == "hello" && words[1] == "time") { + nodeDataObj.helloTime = words[2]; + nodeDataObj.bridgeHelloTime = words[6]; + } else if (words[0] == "forward") { + nodeDataObj.forwardDelay = words[2]; + nodeDataObj.bridgeForwardDelay = words[6]; + } else if (words[0] == "ageing") { + nodeDataObj.ageingTime = words[2]; + nodeDataObj.gcInterval = words[5]; + } else if (words[0] == "hello" && words[1] == "timer") { + nodeDataObj.helloTimer = words[2]; + nodeDataObj.tcnTimer = words[5]; + } else if (words[0] == "topology") { + nodeDataObj.topologyChangeTimer = words[3]; + nodeDataObj.gcTimer = words[6]; + } else if (words[0] == "flags") { + nodeDataObj.flags = ""; + for (var i = 1; i < words.length; i++) { + if (nodeDataObj.flags.length > 0) + nodeDataObj.flags = nodeDataObj.flags + ","; + nodeDataObj.flags = nodeDataObj.flags + words[i]; + } + } + } + } +} + +function parseIfData(ifData, nodeStrengthData) { + // + // Looking for something like: + // ath0 Link encap:Ethernet HWaddr 00:0E:9B:12:7D:58 + // + var lines = ifData.value.split('\n'); + for (var l = 0; l < lines.length; l++) { + var words = trimAll(lines[l]).split(/\s+/); + if (words[0] == "ath0") { + nodeStrengthData.macAddr = words[4]; + break; + } else if (words[0] == "eth0") { + // + // This case is only if we are debugging on the virtual + // ZP & Controller which doesn't have ath0. + // + if (nodeStrengthData.macAddr == null) + nodeStrengthData.macAddr = words[4]; + } + } +} + +function parseNetData(statusData, nodeStrengthData) { + var noiseFloorNum = 0; + var lines = statusData.value.split('\n'); + nodeStrengthData.channel = 0; + for (var l = 0; l < lines.length; l++) { + var words = trimAll(lines[l]).split(/\s+/); + if (words.length > 0) { + if (words[0] == "Operating") { + nodeStrengthData.channel = (parseInt(words[3])-2407)/5; + } else if (words[0] == "Noise") { + if (noiseFloorNum == 0) { + nodeStrengthData.noiseFloor = "Noise Floor: " + words[2]; + } else { + nodeStrengthData.noiseFloor += ", "; + nodeStrengthData.noiseFloor += words[2]; + } + noiseFloorNum++; + } else if (words[0] == "OFDM") { + nodeStrengthData.weakSignal = lines[l]; + } else if (words[0] == "Node") { + // Node xx:xx:xx:xx:xx:xx - FROM 63 {61} : TO 63 {61} : STP 03 + var sdToNode = new Object(); + + // increment wi depending on ':' + var nextW = 0; + sdToNode.addr = words[1]; + sdToNode.inA = words[4]; + if (words[5] != ":") { + sdToNode.inB = words[5]; + nextW = 8; + } else { + sdToNode.inB = ""; + nextW = 7; + } + + sdToNode.outA = words[nextW]; + if (words[nextW+1] != ":") { + sdToNode.outB = words[nextW+1]; + } else { + sdToNode.outB = ""; + } + + while (++l < lines.length) { + words = trimAll(lines[l]).split(/\s+/); + if (words[0] == "Node") + break; + } + nodeStrengthData.destinations.push(sdToNode); + l--; + } + } + } +} + +function makenetwork() { + // + // If network data is already parsed, bail out now. + // + if (strengthData.length > 0) return; + // + // The data for each node is enclosed in a separate DIV. Begin by getting a collection of all + // the DIVs which where each DIV will contain the data for a single node. + // + var netDataCollection = document.getElementById("netdata").getElementsByTagName("div"); + for (var i = 0; i < netDataCollection.length; i++) { + var netData = netDataCollection[i]; + // + // The name of the DIV will be netdata_RINCON_{UID of node} + // + var dataNameComponents = netData.id.split('_'); + if (dataNameComponents.length == 3) { + var uid = dataNameComponents[1] + "_" + dataNameComponents[2]; + // + // Now, each DIV contains a TEXTAREA with the different data sections we need to parse + // + var statusData = document.getElementById("status_" + uid); + var ifData = document.getElementById("ifconfig_" + uid); + var stpData = document.getElementById("stp_" + uid); + var zoneName = document.getElementById("zonename_" + uid).value; + + var nodeStrengthData = new Object(); + // + // Find the wireless MAC address for this node from the ifconfig data + // If we didn't find it, then just punt this node entirely. + // + parseIfData(ifData, nodeStrengthData); + if (nodeStrengthData.macAddr == null) continue; + + // Store mapping from MAC address to zone name + macAddrsToZoneNames[nodeStrengthData.macAddr] = zoneName; + + // + // Parse the wireless strength data for this node + // + nodeStrengthData.destinations = new Array(); + parseNetData(statusData, nodeStrengthData); + // + // Parse the STP data for this node + // + parseStpData(stpData, nodeStrengthData); + + strengthData.push(nodeStrengthData); + } + } + // + // Take a pass thru the parsed data to come up with the complete list + // of MAC addresses + // + for (var i = 0; i < strengthData.length; i++) { + var sd = strengthData[i]; + addMacAddr(sd.macAddr); + for (var j = 0; j < sd.destinations.length; j++) { + var dst = sd.destinations[j]; + addMacAddr(dst.addr); + } + } + finishDrawTable("networkTableBody"); +} diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/AVTransport1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/AVTransport1.xml new file mode 100644 index 0000000..ad82710 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/AVTransport1.xml @@ -0,0 +1,1519 @@ + + + + 1 + 0 + + + + TransportState + string + + STOPPED + PLAYING + PAUSED_PLAYBACK + TRANSITIONING + + + + TransportStatus + string + + + TransportErrorDescription + string + + + TransportErrorURI + string + + + TransportErrorHttpCode + string + + + TransportErrorHttpHeaders + string + + + PlaybackStorageMedium + string + + NONE + NETWORK + + + + RecordStorageMedium + string + + NONE + + + + PossiblePlaybackStorageMedia + string + + + PossibleRecordStorageMedia + string + + + CurrentPlayMode + string + + NORMAL + REPEAT_ALL + REPEAT_ONE + SHUFFLE_NOREPEAT + SHUFFLE + SHUFFLE_REPEAT_ONE + + NORMAL + + + CurrentCrossfadeMode + boolean + + + TransportPlaySpeed + string + + 1 + + + + RecordMediumWriteStatus + string + + + CurrentRecordQualityMode + string + + + PossibleRecordQualityModes + string + + + NumberOfTracks + ui4 + + 0 + 65535 + + + + CurrentTrack + ui4 + + 0 + 65535 + 1 + + + + CurrentSection + ui4 + + 0 + 255 + 1 + + + + CurrentTrackDuration + string + + + CurrentMediaDuration + string + + + CurrentTrackMetaData + string + + + CurrentTrackURI + string + + + AVTransportURI + string + + + AVTransportURIMetaData + string + + + NextAVTransportURI + string + + + NextAVTransportURIMetaData + string + + + RelativeTimePosition + string + + + AbsoluteTimePosition + string + + + RelativeCounterPosition + i4 + + + AbsoluteCounterPosition + i4 + + + CurrentTransportActions + string + + + SleepTimerGeneration + ui4 + + + SnoozeRunning + boolean + + + AlarmRunning + boolean + + + AlarmIDRunning + ui4 + + + AlarmLoggedStartTime + string + + + RestartPending + boolean + + + LastChange + string + + + NextTrackMetaData + string + + + NextTrackURI + string + + + EnqueuedTransportURIMetaData + string + + + EnqueuedTransportURI + string + + + CurrentValidPlayModes + string + + + MuseSessions + string + + + DirectControlClientID + string + + + DirectControlAccountID + string + + + DirectControlIsSuspended + boolean + + + A_ARG_TYPE_SeekMode + string + + TRACK_NR + REL_TIME + TIME_DELTA + + + + A_ARG_TYPE_SeekTarget + string + + + A_ARG_TYPE_InstanceID + ui4 + + + A_ARG_TYPE_MemberList + string + + + A_ARG_TYPE_TransportSettings + string + + + A_ARG_TYPE_CurrentAVTransportURI + string + + + A_ARG_TYPE_SourceState + string + + + A_ARG_TYPE_VLIState + string + + + A_ARG_TYPE_Queue + string + + + A_ARG_TYPE_MemberID + string + + + A_ARG_TYPE_URI + string + + + A_ARG_TYPE_LIST_URI + string + + + A_ARG_TYPE_URIMetaData + string + + + A_ARG_TYPE_LIST_URIMetaData + string + + + A_ARG_TYPE_ObjectID + string + + + A_ARG_TYPE_GroupID + string + + + A_ARG_TYPE_PlayerID + string + + + A_ARG_TYPE_TrackNumber + ui4 + + + A_ARG_TYPE_NumTracks + ui4 + + + A_ARG_TYPE_NumTracksChange + i4 + + + A_ARG_TYPE_EnqueueAsNext + boolean + + + A_ARG_TYPE_SavedQueueTitle + string + + + A_ARG_TYPE_ResumePlayback + boolean + + + A_ARG_TYPE_ISO8601Time + string + + + A_ARG_TYPE_AlarmVolume + ui2 + + + A_ARG_TYPE_AlarmIncludeLinkedZones + boolean + + + A_ARG_TYPE_ResetVolumeAfter + boolean + + + A_ARG_TYPE_SleepTimerState + string + + + A_ARG_TYPE_AlarmState + string + + + A_ARG_TYPE_StreamRestartState + string + + + A_ARG_TYPE_RejoinGroup + boolean + + + QueueUpdateID + ui4 + + + A_ARG_TYPE_TrackList + string + + + + + SetAVTransportURI + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentURI + in + AVTransportURI + + + CurrentURIMetaData + in + AVTransportURIMetaData + + + + + SetNextAVTransportURI + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + NextURI + in + NextAVTransportURI + + + NextURIMetaData + in + NextAVTransportURIMetaData + + + + + AddURIToQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + EnqueuedURI + in + A_ARG_TYPE_URI + + + EnqueuedURIMetaData + in + A_ARG_TYPE_URIMetaData + + + DesiredFirstTrackNumberEnqueued + in + A_ARG_TYPE_TrackNumber + + + EnqueueAsNext + in + A_ARG_TYPE_EnqueueAsNext + + + FirstTrackNumberEnqueued + out + A_ARG_TYPE_TrackNumber + + + NumTracksAdded + out + A_ARG_TYPE_NumTracks + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + + + AddMultipleURIsToQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + UpdateID + in + QueueUpdateID + + + NumberOfURIs + in + A_ARG_TYPE_NumTracks + + + EnqueuedURIs + in + A_ARG_TYPE_LIST_URI + + + EnqueuedURIsMetaData + in + A_ARG_TYPE_LIST_URIMetaData + + + ContainerURI + in + A_ARG_TYPE_URI + + + ContainerMetaData + in + A_ARG_TYPE_URIMetaData + + + DesiredFirstTrackNumberEnqueued + in + A_ARG_TYPE_TrackNumber + + + EnqueueAsNext + in + A_ARG_TYPE_EnqueueAsNext + + + FirstTrackNumberEnqueued + out + A_ARG_TYPE_TrackNumber + + + NumTracksAdded + out + A_ARG_TYPE_NumTracks + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + QueueUpdateID + + + + + ReorderTracksInQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + StartingIndex + in + A_ARG_TYPE_TrackNumber + + + NumberOfTracks + in + A_ARG_TYPE_NumTracks + + + InsertBefore + in + A_ARG_TYPE_TrackNumber + + + UpdateID + in + QueueUpdateID + + + + + RemoveTrackFromQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + UpdateID + in + QueueUpdateID + + + + + RemoveTrackRangeFromQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + UpdateID + in + QueueUpdateID + + + StartingIndex + in + A_ARG_TYPE_TrackNumber + + + NumberOfTracks + in + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + QueueUpdateID + + + + + RemoveAllTracksFromQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + SaveQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Title + in + A_ARG_TYPE_SavedQueueTitle + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + AssignedObjectID + out + A_ARG_TYPE_ObjectID + + + + + BackupQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + CreateSavedQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Title + in + A_ARG_TYPE_SavedQueueTitle + + + EnqueuedURI + in + A_ARG_TYPE_URI + + + EnqueuedURIMetaData + in + A_ARG_TYPE_URIMetaData + + + NumTracksAdded + out + A_ARG_TYPE_NumTracks + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + AssignedObjectID + out + A_ARG_TYPE_ObjectID + + + NewUpdateID + out + QueueUpdateID + + + + + AddURIToSavedQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + UpdateID + in + QueueUpdateID + + + EnqueuedURI + in + A_ARG_TYPE_URI + + + EnqueuedURIMetaData + in + A_ARG_TYPE_URIMetaData + + + AddAtIndex + in + A_ARG_TYPE_TrackNumber + + + NumTracksAdded + out + A_ARG_TYPE_NumTracks + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + QueueUpdateID + + + + + ReorderTracksInSavedQueue + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + UpdateID + in + QueueUpdateID + + + TrackList + in + A_ARG_TYPE_TrackList + + + NewPositionList + in + A_ARG_TYPE_TrackList + + + QueueLengthChange + out + A_ARG_TYPE_NumTracksChange + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + QueueUpdateID + + + + + GetMediaInfo + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + NrTracks + out + NumberOfTracks + + + MediaDuration + out + CurrentMediaDuration + + + CurrentURI + out + AVTransportURI + + + CurrentURIMetaData + out + AVTransportURIMetaData + + + NextURI + out + NextAVTransportURI + + + NextURIMetaData + out + NextAVTransportURIMetaData + + + PlayMedium + out + PlaybackStorageMedium + + + RecordMedium + out + RecordStorageMedium + + + WriteStatus + out + RecordMediumWriteStatus + + + + + GetTransportInfo + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentTransportState + out + TransportState + + + CurrentTransportStatus + out + TransportStatus + + + CurrentSpeed + out + TransportPlaySpeed + + + + + GetPositionInfo + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Track + out + CurrentTrack + + + TrackDuration + out + CurrentTrackDuration + + + TrackMetaData + out + CurrentTrackMetaData + + + TrackURI + out + CurrentTrackURI + + + RelTime + out + RelativeTimePosition + + + AbsTime + out + AbsoluteTimePosition + + + RelCount + out + RelativeCounterPosition + + + AbsCount + out + AbsoluteCounterPosition + + + + + GetDeviceCapabilities + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + PlayMedia + out + PossiblePlaybackStorageMedia + + + RecMedia + out + PossibleRecordStorageMedia + + + RecQualityModes + out + PossibleRecordQualityModes + + + + + GetTransportSettings + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + PlayMode + out + CurrentPlayMode + + + RecQualityMode + out + CurrentRecordQualityMode + + + + + GetCrossfadeMode + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CrossfadeMode + out + CurrentCrossfadeMode + + + + + Stop + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + Play + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Speed + in + TransportPlaySpeed + + + + + Pause + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + Seek + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Unit + in + A_ARG_TYPE_SeekMode + + + Target + in + A_ARG_TYPE_SeekTarget + + + + + Next + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + Previous + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + SetPlayMode + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + NewPlayMode + in + CurrentPlayMode + + + + + SetCrossfadeMode + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CrossfadeMode + in + CurrentCrossfadeMode + + + + + NotifyDeletedURI + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DeletedURI + in + AVTransportURI + + + + + GetCurrentTransportActions + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Actions + out + CurrentTransportActions + + + + + BecomeCoordinatorOfStandaloneGroup + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DelegatedGroupCoordinatorID + out + A_ARG_TYPE_PlayerID + + + NewGroupID + out + A_ARG_TYPE_GroupID + + + + + DelegateGroupCoordinationTo + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + NewCoordinator + in + A_ARG_TYPE_MemberID + + + RejoinGroup + in + A_ARG_TYPE_RejoinGroup + + + + + BecomeGroupCoordinator + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentCoordinator + in + A_ARG_TYPE_MemberID + + + CurrentGroupID + in + A_ARG_TYPE_GroupID + + + OtherMembers + in + A_ARG_TYPE_MemberList + + + TransportSettings + in + A_ARG_TYPE_TransportSettings + + + CurrentURI + in + AVTransportURI + + + CurrentURIMetaData + in + AVTransportURIMetaData + + + SleepTimerState + in + A_ARG_TYPE_SleepTimerState + + + AlarmState + in + A_ARG_TYPE_AlarmState + + + StreamRestartState + in + A_ARG_TYPE_StreamRestartState + + + CurrentQueueTrackList + in + A_ARG_TYPE_Queue + + + CurrentVLIState + in + A_ARG_TYPE_VLIState + + + + + BecomeGroupCoordinatorAndSource + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentCoordinator + in + A_ARG_TYPE_MemberID + + + CurrentGroupID + in + A_ARG_TYPE_GroupID + + + OtherMembers + in + A_ARG_TYPE_MemberList + + + CurrentURI + in + AVTransportURI + + + CurrentURIMetaData + in + AVTransportURIMetaData + + + SleepTimerState + in + A_ARG_TYPE_SleepTimerState + + + AlarmState + in + A_ARG_TYPE_AlarmState + + + StreamRestartState + in + A_ARG_TYPE_StreamRestartState + + + CurrentAVTTrackList + in + A_ARG_TYPE_Queue + + + CurrentQueueTrackList + in + A_ARG_TYPE_Queue + + + CurrentSourceState + in + A_ARG_TYPE_SourceState + + + ResumePlayback + in + A_ARG_TYPE_ResumePlayback + + + + + ChangeCoordinator + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentCoordinator + in + A_ARG_TYPE_MemberID + + + NewCoordinator + in + A_ARG_TYPE_MemberID + + + NewTransportSettings + in + A_ARG_TYPE_TransportSettings + + + CurrentAVTransportURI + in + A_ARG_TYPE_CurrentAVTransportURI + + + + + ChangeTransportSettings + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + NewTransportSettings + in + A_ARG_TYPE_TransportSettings + + + CurrentAVTransportURI + in + A_ARG_TYPE_CurrentAVTransportURI + + + + + ConfigureSleepTimer + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + NewSleepTimerDuration + in + A_ARG_TYPE_ISO8601Time + + + + + GetRemainingSleepTimerDuration + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + RemainingSleepTimerDuration + out + A_ARG_TYPE_ISO8601Time + + + CurrentSleepTimerGeneration + out + SleepTimerGeneration + + + + + RunAlarm + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + AlarmID + in + AlarmIDRunning + + + LoggedStartTime + in + AlarmLoggedStartTime + + + Duration + in + A_ARG_TYPE_ISO8601Time + + + ProgramURI + in + AVTransportURI + + + ProgramMetaData + in + AVTransportURIMetaData + + + PlayMode + in + CurrentPlayMode + + + Volume + in + A_ARG_TYPE_AlarmVolume + + + IncludeLinkedZones + in + A_ARG_TYPE_AlarmIncludeLinkedZones + + + + + StartAutoplay + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + ProgramURI + in + AVTransportURI + + + ProgramMetaData + in + AVTransportURIMetaData + + + Volume + in + A_ARG_TYPE_AlarmVolume + + + IncludeLinkedZones + in + A_ARG_TYPE_AlarmIncludeLinkedZones + + + ResetVolumeAfter + in + A_ARG_TYPE_ResetVolumeAfter + + + + + GetRunningAlarmProperties + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + AlarmID + out + AlarmIDRunning + + + GroupID + out + A_ARG_TYPE_GroupID + + + LoggedStartTime + out + AlarmLoggedStartTime + + + + + SnoozeAlarm + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Duration + in + A_ARG_TYPE_ISO8601Time + + + + + EndDirectControlSession + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/AlarmClock1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/AlarmClock1.xml new file mode 100644 index 0000000..41087f0 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/AlarmClock1.xml @@ -0,0 +1,447 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_ISO8601Time + string + + + A_ARG_TYPE_Recurrence + string + + ONCE + WEEKDAYS + WEEKENDS + DAILY + + + + A_ARG_TYPE_AlarmID + ui4 + + + A_ARG_TYPE_AlarmList + string + + + A_ARG_TYPE_AlarmEnabled + boolean + + + A_ARG_TYPE_AlarmProgramURI + string + + + A_ARG_TYPE_AlarmProgramMetaData + string + + + A_ARG_TYPE_AlarmPlayMode + string + + NORMAL + REPEAT_ALL + SHUFFLE_NOREPEAT + SHUFFLE + + NORMAL + + + A_ARG_TYPE_AlarmVolume + ui2 + + + A_ARG_TYPE_AlarmIncludeLinkedZones + boolean + + + A_ARG_TYPE_AlarmRoomUUID + string + + + A_ARG_TYPE_TimeZoneIndex + i4 + + + A_ARG_TYPE_TimeZoneAutoAdjustDst + boolean + + + A_ARG_TYPE_TimeZoneInformation + string + + + A_ARG_TYPE_TimeStamp + string + + + TimeZone + string + + + TimeServer + string + + + TimeGeneration + ui4 + + + AlarmListVersion + string + + + DailyIndexRefreshTime + string + + + TimeFormat + string + + + DateFormat + string + + + + + SetFormat + + + DesiredTimeFormat + in + TimeFormat + + + DesiredDateFormat + in + DateFormat + + + + + GetFormat + + + CurrentTimeFormat + out + TimeFormat + + + CurrentDateFormat + out + DateFormat + + + + + SetTimeZone + + + Index + in + A_ARG_TYPE_TimeZoneIndex + + + AutoAdjustDst + in + A_ARG_TYPE_TimeZoneAutoAdjustDst + + + + + GetTimeZone + + + Index + out + A_ARG_TYPE_TimeZoneIndex + + + AutoAdjustDst + out + A_ARG_TYPE_TimeZoneAutoAdjustDst + + + + + GetTimeZoneAndRule + + + Index + out + A_ARG_TYPE_TimeZoneIndex + + + AutoAdjustDst + out + A_ARG_TYPE_TimeZoneAutoAdjustDst + + + CurrentTimeZone + out + TimeZone + + + + + GetTimeZoneRule + + + Index + in + A_ARG_TYPE_TimeZoneIndex + + + TimeZone + out + TimeZone + + + + + SetTimeServer + + + DesiredTimeServer + in + TimeServer + + + + + GetTimeServer + + + CurrentTimeServer + out + TimeServer + + + + + SetTimeNow + + + DesiredTime + in + A_ARG_TYPE_ISO8601Time + + + TimeZoneForDesiredTime + in + A_ARG_TYPE_TimeZoneInformation + + + + + GetHouseholdTimeAtStamp + + + TimeStamp + in + A_ARG_TYPE_TimeStamp + + + HouseholdUTCTime + out + A_ARG_TYPE_ISO8601Time + + + + + GetTimeNow + + + CurrentUTCTime + out + A_ARG_TYPE_ISO8601Time + + + CurrentLocalTime + out + A_ARG_TYPE_ISO8601Time + + + CurrentTimeZone + out + TimeZone + + + CurrentTimeGeneration + out + TimeGeneration + + + + + CreateAlarm + + + StartLocalTime + in + A_ARG_TYPE_ISO8601Time + + + Duration + in + A_ARG_TYPE_ISO8601Time + + + Recurrence + in + A_ARG_TYPE_Recurrence + + + Enabled + in + A_ARG_TYPE_AlarmEnabled + + + RoomUUID + in + A_ARG_TYPE_AlarmRoomUUID + + + ProgramURI + in + A_ARG_TYPE_AlarmProgramURI + + + ProgramMetaData + in + A_ARG_TYPE_AlarmProgramMetaData + + + PlayMode + in + A_ARG_TYPE_AlarmPlayMode + + + Volume + in + A_ARG_TYPE_AlarmVolume + + + IncludeLinkedZones + in + A_ARG_TYPE_AlarmIncludeLinkedZones + + + AssignedID + out + A_ARG_TYPE_AlarmID + + + + + UpdateAlarm + + + ID + in + A_ARG_TYPE_AlarmID + + + StartLocalTime + in + A_ARG_TYPE_ISO8601Time + + + Duration + in + A_ARG_TYPE_ISO8601Time + + + Recurrence + in + A_ARG_TYPE_Recurrence + + + Enabled + in + A_ARG_TYPE_AlarmEnabled + + + RoomUUID + in + A_ARG_TYPE_AlarmRoomUUID + + + ProgramURI + in + A_ARG_TYPE_AlarmProgramURI + + + ProgramMetaData + in + A_ARG_TYPE_AlarmProgramMetaData + + + PlayMode + in + A_ARG_TYPE_AlarmPlayMode + + + Volume + in + A_ARG_TYPE_AlarmVolume + + + IncludeLinkedZones + in + A_ARG_TYPE_AlarmIncludeLinkedZones + + + + + DestroyAlarm + + + ID + in + A_ARG_TYPE_AlarmID + + + + + ListAlarms + + + CurrentAlarmList + out + A_ARG_TYPE_AlarmList + + + CurrentAlarmListVersion + out + AlarmListVersion + + + + + SetDailyIndexRefreshTime + + + DesiredDailyIndexRefreshTime + in + DailyIndexRefreshTime + + + + + GetDailyIndexRefreshTime + + + CurrentDailyIndexRefreshTime + out + DailyIndexRefreshTime + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/AudioIn1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/AudioIn1.xml new file mode 100644 index 0000000..ef52f21 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/AudioIn1.xml @@ -0,0 +1,142 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_MemberID + string + + + A_ARG_TYPE_TransportSettings + string + + + AudioInputName + string + + + Icon + string + + + LineInConnected + boolean + + + LeftLineInLevel + i4 + + + RightLineInLevel + i4 + + + A_ARG_TYPE_ObjectID + string + + + Playing + boolean + + + + + StartTransmissionToGroup + + + CoordinatorID + in + A_ARG_TYPE_MemberID + + + CurrentTransportSettings + out + A_ARG_TYPE_TransportSettings + + + + + StopTransmissionToGroup + + + CoordinatorID + in + A_ARG_TYPE_MemberID + + + + + SetAudioInputAttributes + + + DesiredName + in + AudioInputName + + + DesiredIcon + in + Icon + + + + + GetAudioInputAttributes + + + CurrentName + out + AudioInputName + + + CurrentIcon + out + Icon + + + + + SetLineInLevel + + + DesiredLeftLineInLevel + in + LeftLineInLevel + + + DesiredRightLineInLevel + in + RightLineInLevel + + + + + GetLineInLevel + + + CurrentLeftLineInLevel + out + LeftLineInLevel + + + CurrentRightLineInLevel + out + RightLineInLevel + + + + + SelectAudio + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/ConnectionManager1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/ConnectionManager1.xml new file mode 100644 index 0000000..cda9f82 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/ConnectionManager1.xml @@ -0,0 +1,132 @@ + + + + 1 + 0 + + + + SourceProtocolInfo + string + + + SinkProtocolInfo + string + + + CurrentConnectionIDs + string + + + A_ARG_TYPE_ConnectionStatus + string + + OK + ContentFormatMismatch + InsufficientBandwidth + UnreliableChannel + Unknown + + + + A_ARG_TYPE_ConnectionManager + string + + + A_ARG_TYPE_Direction + string + + Input + Output + + + + A_ARG_TYPE_ProtocolInfo + string + + + A_ARG_TYPE_ConnectionID + i4 + + + A_ARG_TYPE_AVTransportID + i4 + + + A_ARG_TYPE_RcsID + i4 + + + + + GetProtocolInfo + + + Source + out + SourceProtocolInfo + + + Sink + out + SinkProtocolInfo + + + + + GetCurrentConnectionIDs + + + ConnectionIDs + out + CurrentConnectionIDs + + + + + GetCurrentConnectionInfo + + + ConnectionID + in + A_ARG_TYPE_ConnectionID + + + RcsID + out + A_ARG_TYPE_RcsID + + + AVTransportID + out + A_ARG_TYPE_AVTransportID + + + ProtocolInfo + out + A_ARG_TYPE_ProtocolInfo + + + PeerConnectionManager + out + A_ARG_TYPE_ConnectionManager + + + PeerConnectionID + out + A_ARG_TYPE_ConnectionID + + + Direction + out + A_ARG_TYPE_Direction + + + Status + out + A_ARG_TYPE_ConnectionStatus + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/ContentDirectory1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/ContentDirectory1.xml new file mode 100644 index 0000000..1ac5aea --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/ContentDirectory1.xml @@ -0,0 +1,391 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_ObjectID + string + + + A_ARG_TYPE_Result + string + + + A_ARG_TYPE_SearchCriteria + string + + + A_ARG_TYPE_BrowseFlag + string + + BrowseMetadata + BrowseDirectChildren + + + + A_ARG_TYPE_Filter + string + + + A_ARG_TYPE_SortCriteria + string + + + A_ARG_TYPE_Prefix + string + + + A_ARG_TYPE_Index + ui4 + + + A_ARG_TYPE_Count + ui4 + + + A_ARG_TYPE_UpdateID + ui4 + + + A_ARG_TYPE_TagValueList + string + + + A_ARG_TYPE_AlbumArtistDisplayOption + string + + + A_ARG_TYPE_SortOrder + string + + + A_ARG_TYPE_LastIndexChange + string + + + SearchCapabilities + string + + + SortCapabilities + string + + + SystemUpdateID + ui4 + + + ContainerUpdateIDs + string + + + ShareIndexInProgress + boolean + + + ShareIndexLastError + string + + + UserRadioUpdateID + string + + + SavedQueuesUpdateID + string + + + ShareListUpdateID + string + + + RecentlyPlayedUpdateID + string + + + Browseable + boolean + + + RadioFavoritesUpdateID + ui4 + + + RadioLocationUpdateID + ui4 + + + FavoritesUpdateID + string + + + FavoritePresetsUpdateID + string + + + + + GetSearchCapabilities + + + SearchCaps + out + SearchCapabilities + + + + + GetSortCapabilities + + + SortCaps + out + SortCapabilities + + + + + GetSystemUpdateID + + + Id + out + SystemUpdateID + + + + + GetAlbumArtistDisplayOption + + + AlbumArtistDisplayOption + out + A_ARG_TYPE_AlbumArtistDisplayOption + + + + + GetLastIndexChange + + + LastIndexChange + out + A_ARG_TYPE_LastIndexChange + + + + + Browse + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + BrowseFlag + in + A_ARG_TYPE_BrowseFlag + + + Filter + in + A_ARG_TYPE_Filter + + + StartingIndex + in + A_ARG_TYPE_Index + + + RequestedCount + in + A_ARG_TYPE_Count + + + SortCriteria + in + A_ARG_TYPE_SortCriteria + + + Result + out + A_ARG_TYPE_Result + + + NumberReturned + out + A_ARG_TYPE_Count + + + TotalMatches + out + A_ARG_TYPE_Count + + + UpdateID + out + A_ARG_TYPE_UpdateID + + + + + FindPrefix + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + Prefix + in + A_ARG_TYPE_Prefix + + + StartingIndex + out + A_ARG_TYPE_Index + + + UpdateID + out + A_ARG_TYPE_UpdateID + + + + + GetAllPrefixLocations + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + TotalPrefixes + out + A_ARG_TYPE_Count + + + PrefixAndIndexCSV + out + A_ARG_TYPE_Result + + + UpdateID + out + A_ARG_TYPE_UpdateID + + + + + CreateObject + + + ContainerID + in + A_ARG_TYPE_ObjectID + + + Elements + in + A_ARG_TYPE_Result + + + ObjectID + out + A_ARG_TYPE_ObjectID + + + Result + out + A_ARG_TYPE_Result + + + + + UpdateObject + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + CurrentTagValue + in + A_ARG_TYPE_TagValueList + + + NewTagValue + in + A_ARG_TYPE_TagValueList + + + + + DestroyObject + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + + + RefreshShareIndex + + + AlbumArtistDisplayOption + in + A_ARG_TYPE_AlbumArtistDisplayOption + + + + + RequestResort + + + SortOrder + in + A_ARG_TYPE_SortOrder + + + + + GetShareIndexInProgress + + + IsIndexing + out + ShareIndexInProgress + + + + + GetBrowseable + + + IsBrowseable + out + Browseable + + + + + SetBrowseable + + + Browseable + in + Browseable + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/DeviceProperties1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/DeviceProperties1.xml new file mode 100644 index 0000000..7cab8b6 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/DeviceProperties1.xml @@ -0,0 +1,610 @@ + + + + 1 + 0 + + + + HouseholdID + string + + + SettingsReplicationState + string + + + ZoneName + string + + + Icon + string + + + Configuration + string + + + Invisible + boolean + + + IsZoneBridge + boolean + + + AirPlayEnabled + boolean + + + SupportsAudioIn + boolean + + + SupportsAudioClip + boolean + + + IsIdle + boolean + + + MoreInfo + string + + + ChannelMapSet + string + + + HTSatChanMapSet + string + + + HTFreq + ui4 + + + HTBondedZoneCommitState + ui4 + + + Orientation + i4 + + + LastChangedPlayState + string + + + RoomCalibrationState + i4 + + + AvailableRoomCalibration + string + + + SatRoomUUID + string + + + LEDState + string + + On + Off + + + + SerialNumber + string + + + SoftwareVersion + string + + + DisplaySoftwareVersion + string + + + HardwareVersion + string + + + IPAddress + string + + + MACAddress + string + + + CopyrightInfo + string + + + ExtraInfo + string + + + HTAudioIn + ui4 + + + Flags + ui4 + + + AutoplayIncludeLinkedZones + boolean + + + AutoplayRoomUUID + string + + + AutoplaySource + string + + + AutoplayVolume + ui2 + + 0 + 100 + 1 + + + + AutoplayUseVolume + boolean + + + TVConfigurationError + boolean + + + HdmiCecAvailable + boolean + + + WirelessMode + ui4 + + + WirelessLeafOnly + boolean + + + HasConfiguredSSID + boolean + + + ChannelFreq + ui4 + + + BehindWifiExtender + ui4 + + + WifiEnabled + boolean + + + ConfigMode + string + + + SecureRegState + ui4 + + + A_ARG_TYPE_ConfigModeOptions + string + + + A_ARG_TYPE_ConfigModeState + string + + + A_ARG_TYPE_ButtonState + string + + + ButtonLockState + string + + On + Off + + + + VoiceConfigState + ui4 + + + MicEnabled + ui4 + + + KeepGrouped + boolean + + + + + SetLEDState + + + DesiredLEDState + in + LEDState + + + + + GetLEDState + + + CurrentLEDState + out + LEDState + + + + + AddBondedZones + + + ChannelMapSet + in + ChannelMapSet + + + + + RemoveBondedZones + + + ChannelMapSet + in + ChannelMapSet + + + KeepGrouped + in + KeepGrouped + + + + + CreateStereoPair + + + ChannelMapSet + in + ChannelMapSet + + + + + SeparateStereoPair + + + ChannelMapSet + in + ChannelMapSet + + + + + SetZoneAttributes + + + DesiredZoneName + in + ZoneName + + + DesiredIcon + in + Icon + + + DesiredConfiguration + in + Configuration + + + + + GetZoneAttributes + + + CurrentZoneName + out + ZoneName + + + CurrentIcon + out + Icon + + + CurrentConfiguration + out + Configuration + + + + + GetHouseholdID + + + CurrentHouseholdID + out + HouseholdID + + + + + GetZoneInfo + + + SerialNumber + out + SerialNumber + + + SoftwareVersion + out + SoftwareVersion + + + DisplaySoftwareVersion + out + DisplaySoftwareVersion + + + HardwareVersion + out + HardwareVersion + + + IPAddress + out + IPAddress + + + MACAddress + out + MACAddress + + + CopyrightInfo + out + CopyrightInfo + + + ExtraInfo + out + ExtraInfo + + + HTAudioIn + out + HTAudioIn + + + Flags + out + Flags + + + + + SetAutoplayLinkedZones + + + IncludeLinkedZones + in + AutoplayIncludeLinkedZones + + + Source + in + AutoplaySource + + + + + GetAutoplayLinkedZones + + + IncludeLinkedZones + out + AutoplayIncludeLinkedZones + + + Source + in + AutoplaySource + + + + + SetAutoplayRoomUUID + + + RoomUUID + in + AutoplayRoomUUID + + + Source + in + AutoplaySource + + + + + GetAutoplayRoomUUID + + + RoomUUID + out + AutoplayRoomUUID + + + Source + in + AutoplaySource + + + + + SetAutoplayVolume + + + Volume + in + AutoplayVolume + + + Source + in + AutoplaySource + + + + + GetAutoplayVolume + + + CurrentVolume + out + AutoplayVolume + + + Source + in + AutoplaySource + + + + + SetUseAutoplayVolume + + + UseVolume + in + AutoplayUseVolume + + + Source + in + AutoplaySource + + + + + GetUseAutoplayVolume + + + UseVolume + out + AutoplayUseVolume + + + Source + in + AutoplaySource + + + + + AddHTSatellite + + + HTSatChanMapSet + in + HTSatChanMapSet + + + + + RemoveHTSatellite + + + SatRoomUUID + in + SatRoomUUID + + + + + EnterConfigMode + + + Mode + in + ConfigMode + + + Options + in + A_ARG_TYPE_ConfigModeOptions + + + State + out + A_ARG_TYPE_ConfigModeState + + + + + ExitConfigMode + + + Options + in + A_ARG_TYPE_ConfigModeOptions + + + + + GetButtonState + + + State + out + A_ARG_TYPE_ButtonState + + + + + SetButtonLockState + + + DesiredButtonLockState + in + ButtonLockState + + + + + GetButtonLockState + + + CurrentButtonLockState + out + ButtonLockState + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/GroupManagement1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/GroupManagement1.xml new file mode 100644 index 0000000..52b86ed --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/GroupManagement1.xml @@ -0,0 +1,130 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_MemberID + string + + + A_ARG_TYPE_TransportSettings + string + + + A_ARG_TYPE_AVTransportURI + string + + + A_ARG_TYPE_BufferingResultCode + i4 + + + A_ARG_TYPE_BootSeq + ui4 + + + GroupCoordinatorIsLocal + boolean + + + LocalGroupUUID + string + + + VirtualLineInGroupID + string + + + SourceAreaIds + string + + + ResetVolumeAfter + boolean + + + VolumeAVTransportURI + string + + + + + AddMember + + + MemberID + in + A_ARG_TYPE_MemberID + + + BootSeq + in + A_ARG_TYPE_BootSeq + + + CurrentTransportSettings + out + A_ARG_TYPE_TransportSettings + + + CurrentURI + out + A_ARG_TYPE_AVTransportURI + + + GroupUUIDJoined + out + LocalGroupUUID + + + ResetVolumeAfter + out + ResetVolumeAfter + + + VolumeAVTransportURI + out + VolumeAVTransportURI + + + + + RemoveMember + + + MemberID + in + A_ARG_TYPE_MemberID + + + + + ReportTrackBufferingResult + + + MemberID + in + A_ARG_TYPE_MemberID + + + ResultCode + in + A_ARG_TYPE_BufferingResultCode + + + + + SetSourceAreaIds + + + DesiredSourceAreaIds + in + SourceAreaIds + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/GroupRenderingControl1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/GroupRenderingControl1.xml new file mode 100644 index 0000000..53d1c4b --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/GroupRenderingControl1.xml @@ -0,0 +1,127 @@ + + + + 1 + 0 + + + + GroupMute + boolean + + + GroupVolume + ui2 + + 0 + 100 + 1 + + + + GroupVolumeChangeable + boolean + + + A_ARG_TYPE_InstanceID + ui4 + + + A_ARG_TYPE_VolumeAdjustment + i4 + + + + + GetGroupMute + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentMute + out + GroupMute + + + + + SetGroupMute + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DesiredMute + in + GroupMute + + + + + GetGroupVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentVolume + out + GroupVolume + + + + + SetGroupVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DesiredVolume + in + GroupVolume + + + + + SetRelativeGroupVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Adjustment + in + A_ARG_TYPE_VolumeAdjustment + + + NewVolume + out + GroupVolume + + + + + SnapshotGroupVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/HTControl1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/HTControl1.xml new file mode 100644 index 0000000..a9b24bf --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/HTControl1.xml @@ -0,0 +1,137 @@ + + + + 1 + 0 + + + + TOSLinkConnected + boolean + + + IRRepeaterState + string + + On + Off + Disabled + + + + A_ARG_TYPE_Timeout + ui4 + + 0 + 60000 + + + + A_ARG_TYPE_IRRemoteName + string + + + A_ARG_TYPE_IRCode + string + + + RemoteConfigured + boolean + + + LEDFeedbackState + string + + On + Off + + + + + + SetIRRepeaterState + + + DesiredIRRepeaterState + in + IRRepeaterState + + + + + GetIRRepeaterState + + + CurrentIRRepeaterState + out + IRRepeaterState + + + + + IdentifyIRRemote + + + Timeout + in + A_ARG_TYPE_Timeout + + + + + LearnIRCode + + + IRCode + in + A_ARG_TYPE_IRCode + + + Timeout + in + A_ARG_TYPE_Timeout + + + + + CommitLearnedIRCodes + + + Name + in + A_ARG_TYPE_IRRemoteName + + + + + IsRemoteConfigured + + + RemoteConfigured + out + RemoteConfigured + + + + + SetLEDFeedbackState + + + LEDFeedbackState + in + LEDFeedbackState + + + + + GetLEDFeedbackState + + + LEDFeedbackState + out + LEDFeedbackState + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/MusicServices1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/MusicServices1.xml new file mode 100644 index 0000000..ced9c69 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/MusicServices1.xml @@ -0,0 +1,78 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_ServiceDescriptorList + string + + + A_ARG_TYPE_ServiceTypeList + string + + + ServiceId + ui4 + + + ServiceListVersion + string + + + SessionId + string + + + Username + string + + + + + GetSessionId + + + ServiceId + in + ServiceId + + + Username + in + Username + + + SessionId + out + SessionId + + + + + ListAvailableServices + + + AvailableServiceDescriptorList + out + A_ARG_TYPE_ServiceDescriptorList + + + AvailableServiceTypeList + out + A_ARG_TYPE_ServiceTypeList + + + AvailableServiceListVersion + out + ServiceListVersion + + + + + UpdateAvailableServices + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/QPlay1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/QPlay1.xml new file mode 100644 index 0000000..f6d3388 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/QPlay1.xml @@ -0,0 +1,52 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_Seed + string + + + A_ARG_TYPE_Code + string + + + A_ARG_TYPE_MID + string + + + A_ARG_TYPE_DID + string + + + + + QPlayAuth + + + Seed + in + A_ARG_TYPE_Seed + + + Code + out + A_ARG_TYPE_Code + + + MID + out + A_ARG_TYPE_MID + + + DID + out + A_ARG_TYPE_DID + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/Queue1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/Queue1.xml new file mode 100644 index 0000000..a769df4 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/Queue1.xml @@ -0,0 +1,474 @@ + + + + 1 + 0 + + + + LastChange + string + + + UpdateID + ui4 + + + Curated + boolean + + + A_ARG_TYPE_UpdateID + ui4 + + + A_ARG_TYPE_QueueID + ui4 + + + A_ARG_TYPE_QueueOwnerID + string + + + A_ARG_TYPE_QueueOwnerContext + string + + + A_ARG_TYPE_QueuePolicy + string + + + A_ARG_TYPE_URI + string + + + A_ARG_TYPE_LIST_URI + string + + + A_ARG_TYPE_URIMetaData + string + + + A_ARG_TYPE_ObjectID + string + + + A_ARG_TYPE_TrackNumber + ui4 + + + A_ARG_TYPE_NumTracks + ui4 + + + A_ARG_TYPE_EnqueueAsNext + boolean + + + A_ARG_TYPE_SavedQueueTitle + string + + + A_ARG_TYPE_Index + ui4 + + + A_ARG_TYPE_Count + ui4 + + + A_ARG_TYPE_Result + string + + + A_ARG_TYPE_SavedQueueTitle + string + + + A_ARG_TYPE_TrackNumbersCSV + string + + + A_ARG_TYPE_LIST_URI_AND_METADATA + string + + + + + AddURI + + + QueueID + in + A_ARG_TYPE_QueueID + + + UpdateID + in + A_ARG_TYPE_UpdateID + + + EnqueuedURI + in + A_ARG_TYPE_URI + + + EnqueuedURIMetaData + in + A_ARG_TYPE_URIMetaData + + + DesiredFirstTrackNumberEnqueued + in + A_ARG_TYPE_TrackNumber + + + EnqueueAsNext + in + A_ARG_TYPE_EnqueueAsNext + + + FirstTrackNumberEnqueued + out + A_ARG_TYPE_TrackNumber + + + NumTracksAdded + out + A_ARG_TYPE_NumTracks + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + UpdateID + + + + + AddMultipleURIs + + + QueueID + in + A_ARG_TYPE_QueueID + + + UpdateID + in + A_ARG_TYPE_UpdateID + + + ContainerURI + in + A_ARG_TYPE_URI + + + ContainerMetaData + in + A_ARG_TYPE_URIMetaData + + + DesiredFirstTrackNumberEnqueued + in + A_ARG_TYPE_TrackNumber + + + EnqueueAsNext + in + A_ARG_TYPE_EnqueueAsNext + + + NumberOfURIs + in + A_ARG_TYPE_NumTracks + + + EnqueuedURIsAndMetaData + in + A_ARG_TYPE_LIST_URI_AND_METADATA + + + FirstTrackNumberEnqueued + out + A_ARG_TYPE_TrackNumber + + + NumTracksAdded + out + A_ARG_TYPE_NumTracks + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + UpdateID + + + + + AttachQueue + + + QueueOwnerID + in + A_ARG_TYPE_QueueOwnerID + + + QueueID + out + A_ARG_TYPE_QueueID + + + QueueOwnerContext + out + A_ARG_TYPE_QueueOwnerContext + + + + + Backup + + + + + Browse + + + QueueID + in + A_ARG_TYPE_QueueID + + + StartingIndex + in + A_ARG_TYPE_Index + + + RequestedCount + in + A_ARG_TYPE_Count + + + Result + out + A_ARG_TYPE_Result + + + NumberReturned + out + A_ARG_TYPE_Count + + + TotalMatches + out + A_ARG_TYPE_Count + + + UpdateID + out + A_ARG_TYPE_UpdateID + + + + + CreateQueue + + + QueueOwnerID + in + A_ARG_TYPE_QueueOwnerID + + + QueueOwnerContext + in + A_ARG_TYPE_QueueOwnerContext + + + QueueID + out + A_ARG_TYPE_QueueID + + + QueuePolicy + in + A_ARG_TYPE_QueuePolicy + + + + + RemoveAllTracks + + + QueueID + in + A_ARG_TYPE_QueueID + + + UpdateID + in + A_ARG_TYPE_UpdateID + + + NewUpdateID + out + UpdateID + + + + + RemoveTrackRange + + + QueueID + in + A_ARG_TYPE_QueueID + + + UpdateID + in + A_ARG_TYPE_UpdateID + + + StartingIndex + in + A_ARG_TYPE_TrackNumber + + + NumberOfTracks + in + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + UpdateID + + + + + ReorderTracks + + + QueueID + in + A_ARG_TYPE_QueueID + + + StartingIndex + in + A_ARG_TYPE_TrackNumber + + + NumberOfTracks + in + A_ARG_TYPE_NumTracks + + + InsertBefore + in + A_ARG_TYPE_TrackNumber + + + UpdateID + in + A_ARG_TYPE_UpdateID + + + NewUpdateID + out + UpdateID + + + + + ReplaceAllTracks + + + QueueID + in + A_ARG_TYPE_QueueID + + + UpdateID + in + A_ARG_TYPE_UpdateID + + + ContainerURI + in + A_ARG_TYPE_URI + + + ContainerMetaData + in + A_ARG_TYPE_URIMetaData + + + CurrentTrackIndex + in + A_ARG_TYPE_TrackNumber + + + NewCurrentTrackIndices + in + A_ARG_TYPE_TrackNumbersCSV + + + NumberOfURIs + in + A_ARG_TYPE_NumTracks + + + EnqueuedURIsAndMetaData + in + A_ARG_TYPE_LIST_URI_AND_METADATA + + + NewQueueLength + out + A_ARG_TYPE_NumTracks + + + NewUpdateID + out + UpdateID + + + + + SaveAsSonosPlaylist + + + QueueID + in + A_ARG_TYPE_QueueID + + + Title + in + A_ARG_TYPE_SavedQueueTitle + + + ObjectID + in + A_ARG_TYPE_ObjectID + + + AssignedObjectID + out + A_ARG_TYPE_ObjectID + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/RenderingControl1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/RenderingControl1.xml new file mode 100644 index 0000000..a6abd88 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/RenderingControl1.xml @@ -0,0 +1,775 @@ + + + + 1 + 0 + + + + LastChange + string + + + Mute + boolean + + + Volume + ui2 + + 0 + 100 + 1 + + + + A_ARG_TYPE_LeftVolume + ui2 + + 0 + 100 + 1 + + + + A_ARG_TYPE_RightVolume + ui2 + + 0 + 100 + 1 + + + + VolumeDB + i2 + + + Bass + i2 + + -10 + 10 + 1 + + + + Treble + i2 + + -10 + 10 + 1 + + + + EQValue + i2 + + + A_ARG_TYPE_EQType + string + + + Loudness + boolean + + + SupportsOutputFixed + boolean + + + OutputFixed + boolean + + + HeadphoneConnected + boolean + + + A_ARG_TYPE_Channel + string + + Master + LF + RF + + + + A_ARG_TYPE_MuteChannel + string + + Master + LF + RF + SpeakerOnly + + + + A_ARG_TYPE_InstanceID + ui4 + + + A_ARG_TYPE_VolumeAdjustment + i4 + + + A_ARG_TYPE_RampType + string + + SLEEP_TIMER_RAMP_TYPE + ALARM_RAMP_TYPE + AUTOPLAY_RAMP_TYPE + + + + A_ARG_TYPE_RampTimeSeconds + ui4 + + + A_ARG_TYPE_ResetVolumeAfter + boolean + + + A_ARG_TYPE_ProgramURI + string + + + A_ARG_TYPE_ChannelMap + string + + + AudioDelay + string + + + AudioDelayLeftRear + string + + + AudioDelayRightRear + string + + + DialogLevel + string + + + SpeakerSize + ui4 + + + SubCrossover + string + + + SubEnabled + boolean + + + SubGain + string + + + SubPolarity + string + + + SurroundLevel + string + + + MusicSurroundLevel + string + + + NightMode + boolean + + + SurroundEnabled + boolean + + + SurroundMode + string + + + PresetNameList + string + + + RoomCalibrationID + string + + + RoomCalibrationCoefficients + string + + + RoomCalibrationCalibrationMode + string + + + RoomCalibrationEnabled + boolean + + + RoomCalibrationAvailable + boolean + + + + + GetMute + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_MuteChannel + + + CurrentMute + out + Mute + + + + + SetMute + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_MuteChannel + + + DesiredMute + in + Mute + + + + + ResetBasicEQ + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Bass + out + Bass + + + Treble + out + Treble + + + Loudness + out + Loudness + + + LeftVolume + out + A_ARG_TYPE_LeftVolume + + + RightVolume + out + A_ARG_TYPE_RightVolume + + + + + ResetExtEQ + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + EQType + in + A_ARG_TYPE_EQType + + + + + GetVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + CurrentVolume + out + Volume + + + + + SetVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + DesiredVolume + in + Volume + + + + + SetRelativeVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + Adjustment + in + A_ARG_TYPE_VolumeAdjustment + + + NewVolume + out + Volume + + + + + GetVolumeDB + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + CurrentVolume + out + VolumeDB + + + + + SetVolumeDB + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + DesiredVolume + in + VolumeDB + + + + + GetVolumeDBRange + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + MinValue + out + VolumeDB + + + MaxValue + out + VolumeDB + + + + + GetBass + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentBass + out + Bass + + + + + SetBass + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DesiredBass + in + Bass + + + + + GetTreble + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentTreble + out + Treble + + + + + SetTreble + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DesiredTreble + in + Treble + + + + + GetEQ + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + EQType + in + A_ARG_TYPE_EQType + + + CurrentValue + out + EQValue + + + + + SetEQ + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + EQType + in + A_ARG_TYPE_EQType + + + DesiredValue + in + EQValue + + + + + GetLoudness + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + CurrentLoudness + out + Loudness + + + + + SetLoudness + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + DesiredLoudness + in + Loudness + + + + + GetSupportsOutputFixed + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentSupportsFixed + out + SupportsOutputFixed + + + + + GetOutputFixed + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentFixed + out + OutputFixed + + + + + SetOutputFixed + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DesiredFixed + in + OutputFixed + + + + + GetHeadphoneConnected + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CurrentHeadphoneConnected + out + HeadphoneConnected + + + + + RampToVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + RampType + in + A_ARG_TYPE_RampType + + + DesiredVolume + in + Volume + + + ResetVolumeAfter + in + A_ARG_TYPE_ResetVolumeAfter + + + ProgramURI + in + A_ARG_TYPE_ProgramURI + + + RampTime + out + A_ARG_TYPE_RampTimeSeconds + + + + + RestoreVolumePriorToRamp + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Channel + in + A_ARG_TYPE_Channel + + + + + SetChannelMap + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + ChannelMap + in + A_ARG_TYPE_ChannelMap + + + + + SetRoomCalibrationX + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CalibrationID + in + RoomCalibrationID + + + Coefficients + in + RoomCalibrationCoefficients + + + CalibrationMode + in + RoomCalibrationCalibrationMode + + + + + GetRoomCalibrationStatus + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + RoomCalibrationEnabled + out + RoomCalibrationEnabled + + + RoomCalibrationAvailable + out + RoomCalibrationAvailable + + + + + SetRoomCalibrationStatus + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + RoomCalibrationEnabled + in + RoomCalibrationEnabled + + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/SystemProperties1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/SystemProperties1.xml new file mode 100644 index 0000000..9a795b5 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/SystemProperties1.xml @@ -0,0 +1,429 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_VariableName + string + + + A_ARG_TYPE_VariableStringValue + string + + + A_ARG_TYPE_AccountType + ui4 + + + A_ARG_TYPE_AccountUID + ui4 + + + A_ARG_TYPE_AccountUDN + string + + + A_ARG_TYPE_AccountID + string + + + A_ARG_TYPE_AccountPassword + string + + + A_ARG_TYPE_AccountNickname + string + + + A_ARG_TYPE_AccountCredential + string + + + A_ARG_TYPE_AccountMd + string + + + A_ARG_TYPE_IsExpired + boolean + + + A_ARG_TYPE_StubsCreated + string + + + A_ARG_TYPE_RDMEnabled + boolean + + + A_ARG_TYPE_OAuthDeviceID + string + + + A_ARG_TYPE_AuthorizationCode + string + + + A_ARG_TYPE_UserIdHashCode + string + + + A_ARG_TYPE_AccountTier + ui4 + + + A_ARG_TYPE_RedirectURI + string + + + CustomerID + string + + + UpdateID + ui4 + + + UpdateIDX + ui4 + + + VoiceUpdateID + ui4 + + + ThirdPartyHash + string + + + + + SetString + + + VariableName + in + A_ARG_TYPE_VariableName + + + StringValue + in + A_ARG_TYPE_VariableStringValue + + + + + GetString + + + VariableName + in + A_ARG_TYPE_VariableName + + + StringValue + out + A_ARG_TYPE_VariableStringValue + + + + + Remove + + + VariableName + in + A_ARG_TYPE_VariableName + + + + + GetWebCode + + + AccountType + in + A_ARG_TYPE_AccountType + + + WebCode + out + A_ARG_TYPE_VariableStringValue + + + + + ProvisionCredentialedTrialAccountX + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountID + in + A_ARG_TYPE_AccountID + + + AccountPassword + in + A_ARG_TYPE_AccountPassword + + + IsExpired + out + A_ARG_TYPE_IsExpired + + + AccountUDN + out + A_ARG_TYPE_AccountUDN + + + + + AddAccountX + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountID + in + A_ARG_TYPE_AccountID + + + AccountPassword + in + A_ARG_TYPE_AccountPassword + + + AccountUDN + out + A_ARG_TYPE_AccountUDN + + + + + AddOAuthAccountX + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountToken + in + A_ARG_TYPE_AccountCredential + + + AccountKey + in + A_ARG_TYPE_AccountCredential + + + OAuthDeviceID + in + A_ARG_TYPE_OAuthDeviceID + + + AuthorizationCode + in + A_ARG_TYPE_AuthorizationCode + + + RedirectURI + in + A_ARG_TYPE_RedirectURI + + + UserIdHashCode + in + A_ARG_TYPE_UserIdHashCode + + + AccountTier + in + A_ARG_TYPE_AccountTier + + + AccountUDN + out + A_ARG_TYPE_AccountUDN + + + AccountNickname + out + A_ARG_TYPE_AccountNickname + + + + + RemoveAccount + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountID + in + A_ARG_TYPE_AccountID + + + + + EditAccountPasswordX + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountID + in + A_ARG_TYPE_AccountID + + + NewAccountPassword + in + A_ARG_TYPE_AccountPassword + + + + + SetAccountNicknameX + + + AccountUDN + in + A_ARG_TYPE_AccountUDN + + + AccountNickname + in + A_ARG_TYPE_AccountNickname + + + + + RefreshAccountCredentialsX + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountUID + in + A_ARG_TYPE_AccountUID + + + AccountToken + in + A_ARG_TYPE_AccountCredential + + + AccountKey + in + A_ARG_TYPE_AccountCredential + + + + + EditAccountMd + + + AccountType + in + A_ARG_TYPE_AccountType + + + AccountID + in + A_ARG_TYPE_AccountID + + + NewAccountMd + in + A_ARG_TYPE_AccountMd + + + + + DoPostUpdateTasks + + + ResetThirdPartyCredentials + + + EnableRDM + + + RDMValue + in + A_ARG_TYPE_RDMEnabled + + + + + GetRDM + + + RDMValue + out + A_ARG_TYPE_RDMEnabled + + + + + ReplaceAccountX + + + AccountUDN + in + A_ARG_TYPE_AccountUDN + + + NewAccountID + in + A_ARG_TYPE_AccountID + + + NewAccountPassword + in + A_ARG_TYPE_AccountPassword + + + AccountToken + in + A_ARG_TYPE_AccountCredential + + + AccountKey + in + A_ARG_TYPE_AccountCredential + + + OAuthDeviceID + in + A_ARG_TYPE_OAuthDeviceID + + + NewAccountUDN + out + A_ARG_TYPE_AccountUDN + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/VirtualLineIn1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/VirtualLineIn1.xml new file mode 100644 index 0000000..9ff6c3e --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/VirtualLineIn1.xml @@ -0,0 +1,156 @@ + + + + 1 + 0 + + + + A_ARG_TYPE_InstanceID + ui4 + + + A_ARG_TYPE_PlayerID + string + + + A_ARG_TYPE_Volume + ui2 + + + A_ARG_TYPE_CurrentTransportSettings + string + + + A_ARG_TYPE_Speed + string + + + CurrentTrackMetaData + string + + + EnqueuedTransportURIMetaData + string + + + AVTransportURIMetaData + string + + + CurrentTransportActions + string + + + LastChange + string + + + + + StartTransmission + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CoordinatorID + in + A_ARG_TYPE_PlayerID + + + CurrentTransportSettings + out + A_ARG_TYPE_CurrentTransportSettings + + + + + StopTransmission + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + CoordinatorID + in + A_ARG_TYPE_PlayerID + + + + + Play + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + Speed + in + A_ARG_TYPE_Speed + + + + + Pause + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + Next + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + Previous + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + Stop + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + + + SetVolume + + + InstanceID + in + A_ARG_TYPE_InstanceID + + + DesiredVolume + in + A_ARG_TYPE_Volume + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/ZoneGroupTopology1.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/ZoneGroupTopology1.xml new file mode 100644 index 0000000..54658c2 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/ZoneGroupTopology1.xml @@ -0,0 +1,262 @@ + + + + 1 + 0 + + + + AvailableSoftwareUpdate + string + + + ZoneGroupState + string + + + ThirdPartyMediaServersX + string + + + AlarmRunSequence + string + + + MuseHouseholdId + string + + + ZoneGroupName + string + + + ZoneGroupID + string + + + ZonePlayerUUIDsInGroup + string + + + A_ARG_TYPE_UpdateType + string + + All + Software + + + + A_ARG_TYPE_CachedOnly + boolean + + + A_ARG_TYPE_UpdateItem + string + + + A_ARG_TYPE_UpdateURL + string + + + A_ARG_TYPE_UpdateFlags + ui4 + + + A_ARG_TYPE_UpdateExtraOptions + string + + + A_ARG_TYPE_Version + string + + + A_ARG_TYPE_MemberID + string + + + A_ARG_TYPE_UnresponsiveDeviceActionType + string + + Remove + TopologyMonitorProbe + VerifyThenRemoveSystemwide + + + + DiagnosticID + ui4 + + + A_ARG_TYPE_IncludeControllers + boolean + + + A_ARG_TYPE_Origin + string + + + A_ARG_TYPE_MobileDeviceName + string + + + A_ARG_TYPE_MobileDeviceUDN + string + + + A_ARG_TYPE_MobileIPAndPort + string + + + AreasUpdateID + string + + + SourceAreasUpdateID + string + + + NetsettingsUpdateID + string + + + + + CheckForUpdate + + + UpdateType + in + A_ARG_TYPE_UpdateType + + + CachedOnly + in + A_ARG_TYPE_CachedOnly + + + Version + in + A_ARG_TYPE_Version + + + UpdateItem + out + A_ARG_TYPE_UpdateItem + + + + + BeginSoftwareUpdate + + + UpdateURL + in + A_ARG_TYPE_UpdateURL + + + Flags + in + A_ARG_TYPE_UpdateFlags + + + ExtraOptions + in + A_ARG_TYPE_UpdateExtraOptions + + + + + ReportUnresponsiveDevice + + + DeviceUUID + in + A_ARG_TYPE_MemberID + + + DesiredAction + in + A_ARG_TYPE_UnresponsiveDeviceActionType + + + + + ReportAlarmStartedRunning + + + SubmitDiagnostics + + + DiagnosticID + out + DiagnosticID + + + IncludeControllers + in + A_ARG_TYPE_IncludeControllers + + + Type + in + A_ARG_TYPE_Origin + + + + + RegisterMobileDevice + + + MobileDeviceName + in + A_ARG_TYPE_MobileDeviceName + + + MobileDeviceUDN + in + A_ARG_TYPE_MobileDeviceUDN + + + MobileIPAndPort + in + A_ARG_TYPE_MobileIPAndPort + + + + + GetZoneGroupAttributes + + + CurrentZoneGroupName + out + ZoneGroupName + + + CurrentZoneGroupID + out + ZoneGroupID + + + CurrentZonePlayerUUIDsInGroup + out + ZonePlayerUUIDsInGroup + + + CurrentMuseHouseholdId + out + MuseHouseholdId + + + + + GetZoneGroupState + + + ZoneGroupState + out + ZoneGroupState + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/device_description.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/device_description.xml new file mode 100644 index 0000000..9208c3f --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/device_description.xml @@ -0,0 +1,216 @@ + + + + 1 + 0 + + + urn:schemas-upnp-org:device:ZonePlayer:1 + #HOST# - Sonos #DISPLAY_NAME# + Sonos, Inc. + http://www.sonos.com + #MODEL# + Sonos #DISPLAY_NAME# + Sonos #DISPLAY_NAME# + http://www.sonos.com/products/zoneplayers/#MODEL# + #SW_VERSION# + #SW_GENERATION# + #HW_VERSION# + #SERIAL_NUM# + #MAC_ADDRESS# + uuid:#UUID# + + + 0 + image/png + 48 + 48 + 24 + /img/icon-#MODEL#.png + + + #SW_MINCOMPATVER# + #SW_LEGACYCOMPATVER# + #API_VERSION# + #MIN_API_VERSION# + #DISPLAY_VERSION# + #EXTRA_VERSION# + #NAME# + #DISPLAY_NAME# + #ZONETYPE# + #FEATURE1# + #FEATURE2# + #FEATURE3# + #SERIESID# + #VARIANT# + #INT_SPEAKER_SIZE# + #BASS_EXT# + #SAT_GAIN_OFFSET# + #MEMORY# + #FLASH# + #DEACTIVATION_STATE_TAG_AND_VALUE# + #DEACTIVATION_TTL_TAG_AND_VALUE# + #DEACTIVATION_DATE_TIME_TAG_AND_VALUE# + #FLASH_REPARTITIONED# + #AMP_ONTIME# + #RETAIL_MODE# + + + urn:schemas-upnp-org:service:AlarmClock:1 + urn:upnp-org:serviceId:AlarmClock + /AlarmClock/Control + /AlarmClock/Event + /xml/AlarmClock1.xml + + + urn:schemas-upnp-org:service:MusicServices:1 + urn:upnp-org:serviceId:MusicServices + /MusicServices/Control + /MusicServices/Event + /xml/MusicServices1.xml + + + urn:schemas-upnp-org:service:AudioIn:1 + urn:upnp-org:serviceId:AudioIn + /AudioIn/Control + /AudioIn/Event + /xml/AudioIn1.xml + + + urn:schemas-upnp-org:service:DeviceProperties:1 + urn:upnp-org:serviceId:DeviceProperties + /DeviceProperties/Control + /DeviceProperties/Event + /xml/DeviceProperties1.xml + + + urn:schemas-upnp-org:service:SystemProperties:1 + urn:upnp-org:serviceId:SystemProperties + /SystemProperties/Control + /SystemProperties/Event + /xml/SystemProperties1.xml + + + urn:schemas-upnp-org:service:ZoneGroupTopology:1 + urn:upnp-org:serviceId:ZoneGroupTopology + /ZoneGroupTopology/Control + /ZoneGroupTopology/Event + /xml/ZoneGroupTopology1.xml + + + urn:schemas-upnp-org:service:GroupManagement:1 + urn:upnp-org:serviceId:GroupManagement + /GroupManagement/Control + /GroupManagement/Event + /xml/GroupManagement1.xml + + + urn:schemas-tencent-com:service:QPlay:1 + urn:tencent-com:serviceId:QPlay + /QPlay/Control + /QPlay/Event + /xml/QPlay1.xml + + + + + #MEDIASERVER_NAMESPACE# + #HOST# - Sonos #DISPLAY_NAME# Media Server + Sonos, Inc. + http://www.sonos.com + #MODEL# + Sonos #DISPLAY_NAME# Media Server + Sonos #DISPLAY_NAME# + http://www.sonos.com/products/zoneplayers/#MODEL# + uuid:#UUID#_MS + + + #CD_NAMESPACE# + urn:upnp-org:serviceId:ContentDirectory + /MediaServer/ContentDirectory/Control + /MediaServer/ContentDirectory/Event + /xml/ContentDirectory1.xml + + + urn:schemas-upnp-org:service:ConnectionManager:1 + urn:upnp-org:serviceId:ConnectionManager + /MediaServer/ConnectionManager/Control + /MediaServer/ConnectionManager/Event + /xml/ConnectionManager1.xml + + + + + urn:schemas-upnp-org:device:MediaRenderer:1 + #NAME# - Sonos #DISPLAY_NAME# Media Renderer + Sonos, Inc. + http://www.sonos.com + #MODEL# + Sonos #DISPLAY_NAME# Media Renderer + Sonos #DISPLAY_NAME# + http://www.sonos.com/products/zoneplayers/#MODEL# + uuid:#UUID#_MR + + + urn:schemas-upnp-org:service:RenderingControl:1 + urn:upnp-org:serviceId:RenderingControl + /MediaRenderer/RenderingControl/Control + /MediaRenderer/RenderingControl/Event + /xml/RenderingControl1.xml + + + urn:schemas-upnp-org:service:ConnectionManager:1 + urn:upnp-org:serviceId:ConnectionManager + /MediaRenderer/ConnectionManager/Control + /MediaRenderer/ConnectionManager/Event + /xml/ConnectionManager1.xml + + + urn:schemas-upnp-org:service:AVTransport:1 + urn:upnp-org:serviceId:AVTransport + /MediaRenderer/AVTransport/Control + /MediaRenderer/AVTransport/Event + /xml/AVTransport1.xml + + + urn:schemas-sonos-com:service:Queue:1 + urn:sonos-com:serviceId:Queue + /MediaRenderer/Queue/Control + /MediaRenderer/Queue/Event + /xml/Queue1.xml + + + urn:schemas-upnp-org:service:GroupRenderingControl:1 + urn:upnp-org:serviceId:GroupRenderingControl + /MediaRenderer/GroupRenderingControl/Control + /MediaRenderer/GroupRenderingControl/Event + /xml/GroupRenderingControl1.xml + + + urn:schemas-upnp-org:service:VirtualLineIn:1 + urn:upnp-org:serviceId:VirtualLineIn + /MediaRenderer/VirtualLineIn/Control + /MediaRenderer/VirtualLineIn/Event + /xml/VirtualLineIn1.xml + + + + urn:rhapsody-real-com:device-id-1-0:sonos_1:#UUID# + + + + + #QPLAY_SUPPORT# + + + image/png + 48 + 48 + 24 + /img/icon-#MODEL#.png + + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/factory_reset.xsl b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/factory_reset.xsl new file mode 100644 index 0000000..084fb60 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/factory_reset.xsl @@ -0,0 +1,15 @@ + + + + + + Challenge:
    + +
    + +
    + +
    + + +
    diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/group_description.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/group_description.xml new file mode 100644 index 0000000..8c17da5 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/group_description.xml @@ -0,0 +1,24 @@ + + + + 1 + 0 + + + urn:smartspeaker-audio:device:SpeakerGroup:1 + #GROUP_NAME# + SONOS + uuid:#UUID# + #API_VERSION# + #MIN_API_VERSION# + + + urn:smartspeaker-audio:service:SpeakerGroup:1 + urn:smartspeaker-audio:serviceId:SpeakerGroup + /ssdp/notfound + /ssdp/notfound + /ssdp/notfound + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/review.xsl b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/review.xsl new file mode 100644 index 0000000..39ca7f5 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/review.xsl @@ -0,0 +1,1889 @@ + + + + + + +Sonos Support Info + + + + + + + + + + + + + + + + + + +

    Support Data Collected

    +
    + + + +
    +javascript:toggle('') + () + +
    +
    + +display:none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + +
    +javascript:toggle('') +Controller + +
    +
    + +display:none + + + + + + + + + +
    +
    + + + +
    +javascript:toggle('') +Track Summary + +
    +
    + +display:none + + + + + + + + + + + + + + + + + + + + +
    Title
    MAX
    COUNT
    Store Size
    Store Used
    Entries Size
    Entries Used
    Conflicts
    +
    +
    + + +

    Tracks

    + + + + + + + + + + + + + + +
    FileLeafTitleAlbumArtistComposerGenreSort Key
    +
    + + + +
    +javascript:toggle('') +Environment + +
    +
    + + + + + + + + + + +
    VariableValue
    +
    +
    + + + +
    +javascript:toggle('') + + +
    +
    + +display:none + + + + + +
    contents of 
    +
    +
    +
    + + + +
    +javascript:toggle('') + + +
    +
    + +display:none + + + + + +
    running 
    +
    +
    +
    +
    + + + +
    +javascript:toggle('') +Zone Player Info + +
    +
    + +display:none + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +Device Info + +
    +
    + +display:none + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +Registration Info + +
    +
    + +display:none + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +Controller Info + +
    +
    + +display:none + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +Zone Players + +
    +
    + +display:none + + + + + + + + + + + + + + + + + + + + + + + + + +
    Zone NameCoordinatorGroupPrevGroupVLInGroupIDLocationUUIDVersionMinCompatVerCompatWiModeHasSSIDWiFreqWiEnaBeExIdleSWGenQuarReason
    + + + + + + + + + + + + + + + + +
    Vanished Zone NameUUIDCurGroupPrevGroupLocationReasonBattery %Battery TempTime SinceQuarReason
    +
    +
    + + + +
    +javascript:toggle('') +Media Servers + +
    +
    + +display:none + + + + + + + + + + + + + + + +
    NameLocationUUIDVersionCanBeDisplayedUnavailableTypeExt
    +
    +
    + + +
    +javascript:toggle('') +Incoming Subscriptions + +
    +display:none + + + + +
    +
    +
    +subscriptions for:  current:  max: 
    +
    +
    + + + + + + + +
    +
    +
    +
    +
    +
    + + +
    +javascript:toggle('') +Outgoing Subscriptions + +
    +display:none + + + + +
    +Outgoing Subscriptions
    +
    + + + + + + + +
    +
    +
    +
    +
    + + +
  • :
  • +
    + + +
  • +
    + + +
  • -
  • +
    + + +

    This table might be incomplete. Found at least + +connections on a player that is configured to accept up to + web sockets. Some connections are +hidden.

    +
    + + + + + +
    +
    + + +
    + +
    + + + +
    +javascript:toggle('') +Muse Server () + +
    +
    + +display:none + + + + + + + + + + + + + + +
    IDSession NameSubscriptionsCommand HistoryRemote EndpointLocal EndpointConnection Details
    + +
    +
    + + +
  • :
  • +
    + +
  • +
    + + + + + + + +
    +
    + + +
    + + +
    + +javascript:toggle('') +[] - () + +
    + +display:none + + + + + + + + + + + + + + +
    TimeDurationResponse CodeRetry WaitCallerStateResource
    +
    +
    + + +
    +javascript:toggle('') +Cloud Queue + +
    + +display:none + + +
    +
    + + + +
    +javascript:toggle('') +Auto Trueplay Info + +
    +
    + +display:none + + + + + + + + + +
    Coeffs + +
    +
    +
    +
    +
    + + + +
    +javascript:toggle('') +Voice + +
    +
    + +display:none + + + + + + + + + + + + + + + + + +
    Accounts
    IDServiceStatusWakeWord
    No Accounts
    + + + + + + + + + + + + + + + + +
    Services
    ServiceStateLast DisconnectEndpointpush-to-talk utterancesfarfield utterancesDialogsExtAudio plays
    + + + + + + + + + + + +
    Voice Processing
    Total WW Utterances
    Total Self-reference blocks
    + + + + + + + + + + + + + + + +
    Trigger History
    Time (s)ServiceTrigger BeamSamples uploadedVoice energyNoise energy
    +
    +
    + + + +
    +javascript:toggle('') +Shares + +
    +
    + +display:none + + + + + + + + + + + + +
    Share PathMount
    +
    +
    + + + +
    +javascript:toggle('') +Rendering Control + +
    +
    + +display:none + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +DNS Cache + +
    +
    + +display:none + + + + + + + + + + + + + + +
    HostnameAddressExpiration (s)
    +
    +
    + + + +
    +javascript:toggle('') +Play Mode + +
    +
    + +display:none + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +Cloud Connection Status + +
    +
    + +display:none + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +Trueplay Info + +
    +
    + +display:none + +

    Current Trueplay Information

    + + + + + + + + + + + + + + + + + + + + + +
    Trueplay State
    User Intent
    Avail Cal ID
    Orientation
    BondedZoneInfo
    +

    Trueplay Calibrations

    +
      + +
    • Calibration ID:
    • +
        + +
      • Device Channel : + + [Orientation = ] +
      • +
        +
      • Block ID:
      • +
      • Difference Metric:
      • +
      • Mode:
      • +
      +
      +
    +
    +
    + + + +
    +javascript:toggle('') +Alarm Data + +
    +
    + +display:none + + + + + + + + +
    Time Server
    Time Mode
    Stamp
    Scheduled
    UTC Time
    Local Time
    + + + + + + +
    Pending Alarm Data
    TypeIDTimeRecurrenceNextUTCNextLocal
    +
    +
    + + + +
    +javascript:makenetwork(); toggle('network'); +Network Matrix + + +
    +
    + + + +
    +javascript:toggle('') +Ethernet Ports + +
    +
    + +display:none + + + + + + + + + + +
    PortLinkSpeed
    +
    +
    + + + +
    +javascript:toggle('') +Ethernet Ports Statistics + +
    +
    + +display:none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    PortStatistics
    +
    +
    Summary
    Packets Received
    Packets Trasmitted
    Bytes Received
    Bytes Transmitted
    Bad Packets Recieved
    Packet Transmit Problem
    Rx Packets Dropped
    Tx Packets Dropped
    Multicasts
    Collisions
    Rx Detailed Errors
    Rx Length Errors
    Overflow errors
    CRC errors
    Frame errors
    Fifo errors
    Missed errors
    Tx Detailed Errors
    Aborted errors
    Carrier errors
    Fifo errors
    Heartbeat errors
    Window errors
    +
    +
    + + + + + + + + + + + + + + +
    +javascript:toggle('') +Radio Station Log + +
    +
    + +display:none + + + + +
    TimestampTypeMilliseconds to ResolveURIMIME Type
    +
    +
    + + + +
    +javascript:toggle('') +Button Triggered XML Dump + +
    +
    + +display:none + +
    + +margin-left:2em + + +
    +
    +
    + + + +
    +javascript:toggle('') +Dropout Triggered XML Dump + +
    +
    + +display:none + +
    + +margin-left:2em + + +
    +
    +
    + + + +
    +javascript:toggle('') +Backtrace + +
    +
    + +display:none + +
    + +margin-left:2em + +
    +
    +
    +
    + + + +
    +javascript:toggle('') +netsettings.txt + +
    +
    + +display:none + +
    + +margin-left:2em + +
    +
    +
    +
    + + + +
    +javascript:toggle('') +ssidlist.txt + +
    +
    + +display:none + +
    + +margin-left:2em + +
    +
    +
    +
    + + + +
    +javascript:toggle('') +Household Netsettings + +
    +
    + +display:none + + + + + + + + + + + + + + +
    LastUpdateDevice
    Version
    FileSchemaVersion
    + + + + + + + + +
    SonosNet
    Frequency
    + + + + + + + + + + + + + + +
    Networks
    SSIDFlags
    +
    +
    + + + +
    +javascript:toggle('') +SystemSettings + +
    +
    + +display:none + + + + + + + + + + + + + + + + + + + + +
    LastUpdateDeviceVersion
    SettingValue
    +
    +
    + + + +
    +javascript:toggle('') +Accounts + +
    +
    + +display:none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    LastUpdateDeviceVersionNextSerialNumVClockHouseholdVClockCloudMuseHouseholdID
    UUIDTypeSerialNumDeletedUNNNMDFlagsOADevIDHashTierVClockHouseholdVClockCloud
    + + + + + + + + + + + + + +
    Replication Player (push requests)OperationTimeResult
    +
    +
    + + + +
    +javascript:toggle('') +Subnet Stats + +
    +
    + +display:none + + + + + + + + + + + + +
    IP AddressSubnet MaskProtection Enabled
    + + + + + + + + + + + + + + + +
    (Total: Sonos: )
    TimeRemote IP AddressUser Agent
    +
    +
    +
    + + + +
    +javascript:toggle('') +Device Certificate () + +
    +
    + +display:none + + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +Performance Counters + +
    +
    + +display:none + + + + + +
    +:
    +
    +
    +
    +
    + + + +
    +javascript:toggle('') +CPU Monitor + +
    +
    + +display:none + + + + + +
    +:
    +
    +
    +
    +
    + + + +
    +javascript:toggle('') +CPU Info + +
    +
    + +display:none + +

    CPU Info

    +
    +
    +
    +
    +
    + + + +
    +javascript:toggle('') +Temperature Histograms + +
    +
    + +display:none + + + + + + + + +
    Temperature Histograms
    +
    +
    + + + +
    + + javascript:toggle('') + Home Theater Configuration + +
    +
    + + display:none + + + + + + + + + +
    Home Theater Configuration
    + + + + + + + + + + +
    Surrounds
    ChannelDelayGain
    +
    +
    + + + +
    +javascript:toggle('') +Toslink Status + +
    +
    + +display:none + + + + + + + + +
    TOSLINK Status
    +
    +
    + + + +
    +javascript:toggle('') +HDMI Status + +
    +
    + +display:none + + + + + + + + + + +
    Status
    + + + + + + + + + +
    CEC
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    TV
    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Topology
    LogicalAddressPhysicalAddressVendorIdOsdNameCecVersionDeclaredCec2MsgObservedLastUpdateSec
    + + + + + +
    RawEdid
    +
    + +
    +
    + + + +
    +javascript:toggle('') +HDMI CEC Messages + +
    +
    + +display:none + + + +
    +HDMI CEC Message Log:
    +
    +
    +
    +
    + + + +
    +javascript:toggle('') +Track Queue Summary + +
    +
    + +display:none + + + + + + + +
    +
    +
    +
    + + + +
    +javascript:toggle('') +Third Party Libraries + +
    +
    + +display:none + + + + + + + +
    +
    +
    +
    + + + +
    +javascript:toggle('') +Service Ids +
    +
    + +display:none + + + + + + + + + + + + + + + + + + + + + + +
    FileCached
    ETag
    Version
    LUD
    +

    + + + + + + + +
    Total
    Service Ids
    +
    +
    + + + +
    +javascript:toggle('') +Track Queue Details () + +
    +
    + + +display:none + + + + + + + + + + + + + + + + + + + + +
    Queue Tracks
    TrackNumTrack /
    Enqueued URL
    ExtraMd /
    EnqueuedMd
    + +
    +
    + + + +
    +javascript:toggle('') +Update Info + +
    +
    + +display:none + + + + + +
    +
    +
    + + + +
    +javascript:toggle('') +Zone Experiments + +
    +
    + +display:none + + + + + + + + + + + + + + +
    idtypevalue
    +
    +
    +
    diff --git a/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/satellite_device.xml b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/satellite_device.xml new file mode 100644 index 0000000..61fb224 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/htdocs/xml/satellite_device.xml @@ -0,0 +1,126 @@ + + + + 1 + 0 + + + urn:schemas-upnp-org:device:ZonePlayer:1 + #HOST# - Sonos #DISPLAY_NAME# + Sonos, Inc. + http://www.sonos.com + #MODEL# + Sonos #DISPLAY_NAME# + Sonos #DISPLAY_NAME# + http://www.sonos.com/products/zoneplayers/#MODEL# + #SW_VERSION# + #SW_GENERATION# + #HW_VERSION# + #SERIAL_NUM# + #MAC_ADDRESS# + uuid:#UUID# + + + 0 + image/png + 48 + 48 + 24 + /img/icon-#MODEL#.png + + + #SW_MINCOMPATVER# + #SW_LEGACYCOMPATVER# + #API_VERSION# + #MIN_API_VERSION# + #DISPLAY_VERSION# + #EXTRA_VERSION# + #NAME# + #DISPLAY_NAME# + #ZONETYPE# + #FEATURE1# + #FEATURE2# + #FEATURE3# + #SERIESID# + #VARIANT# + #INT_SPEAKER_SIZE# + #BASS_EXT# + #SAT_GAIN_OFFSET# + #MEMORY# + #FLASH# + #DEACTIVATION_STATE_TAG_AND_VALUE# + #DEACTIVATION_TTL_TAG_AND_VALUE# + #DEACTIVATION_DATE_TIME_TAG_AND_VALUE# + #FLASH_REPARTITIONED# + #AMP_ONTIME# + #RETAIL_MODE# + + + urn:schemas-upnp-org:service:AlarmClock:1 + urn:upnp-org:serviceId:AlarmClock + /AlarmClock/Control + /AlarmClock/Event + /xml/AlarmClock1.xml + + + urn:schemas-upnp-org:service:DeviceProperties:1 + urn:upnp-org:serviceId:DeviceProperties + /DeviceProperties/Control + /DeviceProperties/Event + /xml/DeviceProperties1.xml + + + urn:schemas-upnp-org:service:SystemProperties:1 + urn:upnp-org:serviceId:SystemProperties + /SystemProperties/Control + /SystemProperties/Event + /xml/SystemProperties1.xml + + + urn:schemas-upnp-org:service:ZoneGroupTopology:1 + urn:upnp-org:serviceId:ZoneGroupTopology + /ZoneGroupTopology/Control + /ZoneGroupTopology/Event + /xml/ZoneGroupTopology1.xml + + + urn:schemas-upnp-org:service:GroupManagement:1 + urn:upnp-org:serviceId:GroupManagement + /GroupManagement/Control + /GroupManagement/Event + /xml/GroupManagement1.xml + + + + + urn:schemas-upnp-org:device:MediaRenderer:1 + #NAME# - Sonos #DISPLAY_NAME# Media Renderer + Sonos, Inc. + http://www.sonos.com + #MODEL# + Sonos #DISPLAY_NAME# Media Renderer + Sonos #DISPLAY_NAME# + http://www.sonos.com/products/zoneplayers/#MODEL# + uuid:#UUID#_MR + + + urn:schemas-upnp-org:service:RenderingControl:1 + urn:upnp-org:serviceId:RenderingControl + /MediaRenderer/RenderingControl/Control + /MediaRenderer/RenderingControl/Event + /xml/RenderingControl1.xml + + + + + image/png + 48 + 48 + 24 + /img/icon-#MODEL#.png + + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/log b/devices/ZP120/filesystems/prodfs/opt/log new file mode 120000 index 0000000..6e2e31a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/log @@ -0,0 +1 @@ +/ramdisk/optlog \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/opt/musicservices/musicservices.xml b/devices/ZP120/filesystems/prodfs/opt/musicservices/musicservices.xml new file mode 100644 index 0000000..7be072a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/musicservices/musicservices.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/devices/ZP120/filesystems/prodfs/opt/timezones/timezones.xml b/devices/ZP120/filesystems/prodfs/opt/timezones/timezones.xml new file mode 100644 index 0000000..e92b377 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/opt/timezones/timezones.xml @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/devices/ZP120/filesystems/prodfs/sbin/halt b/devices/ZP120/filesystems/prodfs/sbin/halt new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/sbin/halt @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/sbin/ifconfig b/devices/ZP120/filesystems/prodfs/sbin/ifconfig new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/sbin/ifconfig @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/sbin/ifdown b/devices/ZP120/filesystems/prodfs/sbin/ifdown new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/sbin/ifdown @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/sbin/ifup b/devices/ZP120/filesystems/prodfs/sbin/ifup new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/sbin/ifup @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/sbin/init b/devices/ZP120/filesystems/prodfs/sbin/init new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/sbin/init @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/sbin/insmod b/devices/ZP120/filesystems/prodfs/sbin/insmod new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/sbin/insmod @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/sbin/lsmod b/devices/ZP120/filesystems/prodfs/sbin/lsmod new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/sbin/lsmod @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/sbin/poweroff b/devices/ZP120/filesystems/prodfs/sbin/poweroff new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/sbin/poweroff @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/sbin/reboot b/devices/ZP120/filesystems/prodfs/sbin/reboot new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/sbin/reboot @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/sbin/rmmod b/devices/ZP120/filesystems/prodfs/sbin/rmmod new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/sbin/rmmod @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/sbin/route b/devices/ZP120/filesystems/prodfs/sbin/route new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/sbin/route @@ -0,0 +1 @@ +../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/sbin/udhcpc b/devices/ZP120/filesystems/prodfs/sbin/udhcpc new file mode 100755 index 0000000..3c9551b Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/sbin/udhcpc differ diff --git a/devices/ZP120/filesystems/prodfs/tmp b/devices/ZP120/filesystems/prodfs/tmp new file mode 120000 index 0000000..f77f9ab --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/tmp @@ -0,0 +1 @@ +/ramdisk/tmp \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/[ b/devices/ZP120/filesystems/prodfs/usr/bin/[ new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/[ @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/[[ b/devices/ZP120/filesystems/prodfs/usr/bin/[[ new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/[[ @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/clear b/devices/ZP120/filesystems/prodfs/usr/bin/clear new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/clear @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/cut b/devices/ZP120/filesystems/prodfs/usr/bin/cut new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/cut @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/dirname b/devices/ZP120/filesystems/prodfs/usr/bin/dirname new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/dirname @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/expr b/devices/ZP120/filesystems/prodfs/usr/bin/expr new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/expr @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/find b/devices/ZP120/filesystems/prodfs/usr/bin/find new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/find @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/free b/devices/ZP120/filesystems/prodfs/usr/bin/free new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/free @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/head b/devices/ZP120/filesystems/prodfs/usr/bin/head new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/head @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/killall b/devices/ZP120/filesystems/prodfs/usr/bin/killall new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/killall @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/tail b/devices/ZP120/filesystems/prodfs/usr/bin/tail new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/tail @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/telnet b/devices/ZP120/filesystems/prodfs/usr/bin/telnet new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/telnet @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/test b/devices/ZP120/filesystems/prodfs/usr/bin/test new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/test @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/time b/devices/ZP120/filesystems/prodfs/usr/bin/time new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/time @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/top b/devices/ZP120/filesystems/prodfs/usr/bin/top new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/top @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/traceroute b/devices/ZP120/filesystems/prodfs/usr/bin/traceroute new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/traceroute @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/tty b/devices/ZP120/filesystems/prodfs/usr/bin/tty new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/tty @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/uptime b/devices/ZP120/filesystems/prodfs/usr/bin/uptime new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/uptime @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/wget b/devices/ZP120/filesystems/prodfs/usr/bin/wget new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/wget @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/bin/yes b/devices/ZP120/filesystems/prodfs/usr/bin/yes new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/bin/yes @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/usr/sbin/brctl b/devices/ZP120/filesystems/prodfs/usr/sbin/brctl new file mode 100755 index 0000000..8aee63b Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/usr/sbin/brctl differ diff --git a/devices/ZP120/filesystems/prodfs/usr/sbin/keyval b/devices/ZP120/filesystems/prodfs/usr/sbin/keyval new file mode 100755 index 0000000..74282b8 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/usr/sbin/keyval differ diff --git a/devices/ZP120/filesystems/prodfs/usr/sbin/netconfig.sh b/devices/ZP120/filesystems/prodfs/usr/sbin/netconfig.sh new file mode 100755 index 0000000..3788e51 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/sbin/netconfig.sh @@ -0,0 +1,412 @@ +#!/bin/sh + + +case "$1" in + sonosnet|station|open|credcheck|deauth|wfacert|wacexit|up) + MODE="$1" + WAC=0 + ;; + wacstart|wacapclose|wactimeout) + MODE="$1" + WAC=1 + ;; + waccredcheck) + MODE=credcheck + WAC=1 + ;; + wacapopen) + MODE=open + WAC=1 + ;; + wacstation) + MODE=station + WAC=1 + ;; + *) + echo "Illegal mode!" + exit 1 + ;; +esac + +PARAM1="$2" +PARAM2="$3" + +MODEL=`/bin/mdputil | /usr/sbin/keyval ^MODEL` +SUBMODEL=`/bin/mdputil | /usr/sbin/keyval ^SUBMODEL` +WIFITYPE=`/bin/mdputil | /usr/sbin/keyval ^WIFITYPE` + +if [ -f /jffs/debug/testpoints.sh ] && \ + [ "`cat /proc/sonos-lock/exec_enable`" == "1" ]; then + . /jffs/debug/testpoints.sh || true +fi + +if [ "${WAC}" = "0" ]; then + if [ -f /tmp/wacd.pid ]; then + kill `cat /tmp/wacd.pid` + rm -f /tmp/wacd.pid + fi +fi + +if [ "${MODE}" = "wacexit" ]; then + exit 0 +fi + +NETSETTINGSFILE=/jffs/netsettings.txt +if [ -f /ramdisk/tmp/netsettings_check.txt ]; then + USE_SSIDLIST=0 + if [ "${MODE}" = "station" ] || [ "${MODE}" = "credcheck" ]; then + NETSETTINGSFILE=/ramdisk/tmp/netsettings_check.txt + fi +else + USE_SSIDLIST=`cat /jffs/net/settings/ssidlist.txt | /usr/sbin/keyval ^UseSSIDList` + if [ "${MODE}" = "credcheck" ]; then + echo "credcheck file not found" + exit 1 + fi +fi + +ATHCONFIG=/wifi/athconfig + +killall wpa_supplicant +if [ "${MODE}" = "station" ] || [ "${MODE}" = "credcheck" ]; then + if [ "${PARAM1}" != "external" ]; then + rm -f /var/run/wpa_supplicant.conf + + if [ -f /jffs/debug/wpa_supplicant.conf ]; then + WPACONFIG=/jffs/debug/wpa_supplicant.conf + WPACONFIGOUT="/dev/null" + else + WPACONFIG=/var/run/wpa_supplicant.conf + WPACONFIGOUT=${WPACONFIG} + fi + + if [ "${USE_SSIDLIST}" = "1" ]; then + SSID_FILE=1 /wifi/wpaconfig /jffs/net/settings/ssidlist.txt ${WPACONFIGOUT} + else + SSID_FILE=0 /wifi/wpaconfig ${NETSETTINGSFILE} ${WPACONFIGOUT} + fi + + if [ -f /jffs/debug/supplicant ]; then + WPADEBUG="-dd -t -K" + else + WPADEBUG="-t" + fi + + if [ -f /jffs/debug/wpa_supplicant ] && \ + [ "`cat /proc/sonos-lock/exec_enable`" == "1" ]; then + WPABIN=/jffs/debug/wpa_supplicant + else + WPABIN=/wifi/wpa_supplicant + fi + fi + KEYHEX=`/usr/sbin/keyval ^NFWPwd ${NETSETTINGSFILE}` + SSIDHEX=`/usr/sbin/keyval ^NFWSSID ${NETSETTINGSFILE}` +fi + +if [ "${MODE}" = "credcheck" ]; then + + $ATHCONFIG stasetenable ath0 2 + if [ "${PARAM1}" = "external" ]; then + /wifi/iwpriv apcli0 set Apcli_Clear_Nw_Profile=255 + if [ "${USE_SSIDLIST}" = "1" ]; then + prof_num=0 + while read LINE + do + SSIDHEX=`echo "${LINE}" | /usr/sbin/keyval ^SSID | cut -d: -f 1` + KEYHEX=`echo "${LINE}" | /usr/sbin/keyval ^SSID | cut -d: -f 2` + + if [ "${#SSIDHEX}" -ne "0" ]; then + if [ "${#KEYHEX}" -ne "0" ]; then + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="${prof_num}:${SSIDHEX}:WPAPSKWPA2PSK:TKIPAES:${KEYHEX}:1" + else + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="${prof_num}:${SSIDHEX}:OPEN:NONE:00:1" + fi + prof_num=`expr $prof_num + 1` + fi + done < /jffs/net/settings/ssidlist.txt + else + if [ "${#KEYHEX}" -ne "0" ]; then + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="0:${SSIDHEX}:WPAPSKWPA2PSK:TKIPAES:${KEYHEX}:1" + else + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="0:${SSIDHEX}:OPEN:NONE:00:1" + fi + fi + /wifi/iwpriv apcli0 set ApCliEnable=1 + else + ${WPABIN} -s -B -D sonos -i ath0 -c ${WPACONFIG} ${WPADEBUG} + fi + + exit 0 +fi + + +if [ "${WAC}" = "0" ] && [ "${MODE}" != "open" ]; then + touch /var/run/waitforip +else + rm -f /var/run/waitforip +fi + +if [ -f /tmp/udhcpc.pid ]; then kill `cat /tmp/udhcpc.pid`; fi +if [ -f /tmp/udhcpc.eth0.pid ]; then kill `cat /tmp/udhcpc.eth0.pid`; fi + +$ATHCONFIG setopenmode ath0 DISABLE +$ATHCONFIG stasetenable ath0 0 +$ATHCONFIG stasetenable ath1 0 +$ATHCONFIG scanabort ath0 +$ATHCONFIG satenable ath0 0 + +/usr/sbin/brctl delif br0 eth0 +/usr/sbin/brctl delif br0 eth1 + +/sbin/ifconfig apcli0 down + +/sbin/ifconfig ath0 down +/sbin/ifconfig ath1 down + +/sbin/ifconfig br0 down +/usr/sbin/brctl delbr br0 + +if [ "${MODE}" = "deauth" ]; then + /usr/sbin/brctl addbr br0 + BRMAC=`/usr/sbin/setmac -S | /usr/sbin/keyval ^br0` + /usr/sbin/brctl setmac br0 ${BRMAC} + + /sbin/ifconfig ath0 0.0.0.0 + exit 0 +fi + +AP="" +WEPKEY="disable" +HHID="" +CHANNEL=2412 +BONJOURNAME="" +PRIMARYUUID="" +PRIORITYBR=0 +HAVE_NETSETTINGS=0 +if [ -f ${NETSETTINGSFILE} ]; then + HAVE_NETSETTINGS=1 + WEPKEY=`/usr/sbin/keyval ^WEPKey ${NETSETTINGSFILE}` + HHID=`/usr/sbin/keyval ^HouseholdID ${NETSETTINGSFILE}` + CHANNEL=`/usr/sbin/keyval ^Channel ${NETSETTINGSFILE}` + PRIORITYBR=`/usr/sbin/keyval ^PriorityBridge ${NETSETTINGSFILE}` + BONJOURNAME=`/usr/sbin/keyval -s BonjourName ${NETSETTINGSFILE}` + PRIMARYUUID=`/usr/sbin/keyval ^PrimaryUUID ${NETSETTINGSFILE}` +fi + +if [ "${MODE}" = "open" ]; then + + if [ "${PARAM2}z" != "z" ]; then + CHANNEL=${PARAM2} + fi + + if [ -f /jffs/debug/openchannel ]; then + CHANNEL=`cat /jffs/debug/openchannel` + fi + + /usr/sbin/setmac -L + + /sbin/ifconfig eth0 0.0.0.0 + /sbin/ifconfig eth1 0.0.0.0 + + $ATHCONFIG setchannel ath0 $CHANNEL + $ATHCONFIG setopenmode ath0 $PARAM1 + + /sbin/ifconfig ath0 10.69.69.1 + /sbin/ifconfig apcli0 0.0.0.0 + + /sbin/route add 255.255.255.255 ath0 + /sbin/route add -net 224.0.0.0 netmask 240.0.0.0 ath0 + exit 0 + +fi + +/usr/sbin/brctl addbr br0 +/usr/sbin/brctl sethello br0 1.0 +/usr/sbin/brctl setfd br0 4.0 +/usr/sbin/brctl setmaxage br0 6.0 + +if [ "${MODE}" = "sonosnet" ]; then + + BRMAC=`/usr/sbin/setmac | /usr/sbin/keyval ^br0` + + /sbin/ifconfig eth0 0.0.0.0 + /sbin/ifconfig eth1 0.0.0.0 + + /usr/sbin/brctl addif br0 eth0 + /usr/sbin/brctl addif br0 eth1 + + /usr/sbin/brctl uplink br0 0 + + echo -n "0" > /var/run/netmanager_extender_flags.tmp + mv -f /var/run/netmanager_extender_flags.tmp /var/run/netmanager_extender_flags + +else + + BRMAC=`/usr/sbin/setmac -S | /usr/sbin/keyval ^br0` + + /sbin/ifconfig eth0 0.0.0.0 + /sbin/ifconfig eth1 0.0.0.0 + + /usr/sbin/brctl uplink br0 1 +fi + +if [ "${MODEL}" = "5" ]; then + /sbin/ifconfig eth0 txqueuelen 100 +fi + +/usr/sbin/brctl setmac br0 ${BRMAC} + + +UUIDA=`/sbin/ifconfig eth0 | /usr/sbin/keyval -d: HWaddr` +UUIDP=`/usr/sbin/keyval ^Port /opt/conf/anacapa.conf` +UUID='RINCON_'$UUIDA'0'$UUIDP + +$ATHCONFIG setwepkey ath0 $WEPKEY +$ATHCONFIG setssid ath0 $HHID +$ATHCONFIG setchannel ath0 $CHANNEL +$ATHCONFIG ssidinbeaconenable ath0 0 +$ATHCONFIG beaconenable ath0 0 + +if [ "${MODE}" = "station" ] || [ "${MODE}" = "wfacert" ]; then + + $ATHCONFIG stasetenable ath0 1 + +elif [ "${MODE}" = "up" ]; then + + /sbin/ifconfig ath0 0.0.0.0 + /sbin/ifconfig apcli0 0.0.0.0 + exit 0 + +elif [ "${MODE}" = "wacstart" ] || [ "${MODE}" = "wactimeout" ]; then + /sbin/ifconfig ath0 0.0.0.0 + + if [ -f /tmp/wacd.pid ]; then kill `cat /tmp/wacd.pid`; fi + + if [ "${MODE}" = "wactimeout" ] ; then + WACDARG="-timeout" + fi + + /wifi/wacd $WACDARG + + exit 0 + +elif [ "${MODE}" = "wacapclose" ]; then + exit 0 +fi + +ISHTSATELLITE=0 +if [ "${PRIMARYUUID}z" != "z" ]; then + ISHTSATELLITE=1 + $ATHCONFIG setprimaryuuid ath0 $PRIMARYUUID + $ATHCONFIG satenable ath0 1 + +elif ( [ "${MODEL}" = "9" ] || [ "${MODEL}" = "14" ] || [ "${MODEL}" = "23" ] || [ "${MODEL}" = "24" ] || [ "${MODEL}" = "27" ] ) && ( [ "${MODE}" = "sonosnet" ] || [ "${MODE}" = "station" ] ); then + + $ATHCONFIG setuuid ath0 $UUID + + $ATHCONFIG setuuid ath1 $UUID + $ATHCONFIG acs ath1 1 + $ATHCONFIG acslmenable ath1 1 + $ATHCONFIG setwepkey ath1 $WEPKEY + $ATHCONFIG setssid ath1 $HHID +fi + + +if [ "${MODE}" = "wfacert" ] ; then + if [ "${MODEL}" = "13" ]; then + $ATHCONFIG settxpower ath0 35 + fi + $ATHCONFIG forcetxrate ath0 1 + $ATHCONFIG setmcs ath0 -54 +fi + +if [ "$PRIORITYBR" = "1" ]; then + /usr/sbin/brctl setbridgeprio br0 28672 # 0x7000 +else + /usr/sbin/brctl setbridgeprio br0 38912 # 0x9800 +fi + +/sbin/ifconfig br0 0.0.0.0 + +/sbin/ifconfig ath0 0.0.0.0 + +/sbin/ifconfig ath1 0.0.0.0 +if [ "${ISHTSATELLITE}" = "1" ]; then + /sbin/ifconfig ath1 down +fi + + +if [ "${MODE}" = "station" ]; then + if [ "${PARAM1}" = "external" ]; then + ifconfig apcli0 up + /wifi/iwpriv apcli0 set Apcli_Clear_Nw_Profile=255 + if [ -f /jffs/net/settings/ssidlist.txt ]; then + prof_num=0 + while read LINE + do + SSIDHEX=`echo "${LINE}" | /usr/sbin/keyval ^SSID | cut -d: -f 1` + KEYHEX=`echo "${LINE}" | /usr/sbin/keyval ^SSID | cut -d: -f 2` + + if [ "${#SSIDHEX}" -ne "0" ]; then + if [ "${#KEYHEX}" -ne "0" ]; then + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="${prof_num}:${SSIDHEX}:WPAPSKWPA2PSK:TKIPAES:${KEYHEX}:1" + else + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="${prof_num}:${SSIDHEX}:OPEN:NONE:00:1" + fi + prof_num=`expr $prof_num + 1` + fi + done < /jffs/net/settings/ssidlist.txt + else + if [ "${#KEYHEX}" -ne "0" ]; then + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="0:${SSIDHEX}:WPAPSKWPA2PSK:TKIPAES:${KEYHEX}:1" + else + /wifi/iwpriv apcli0 set Apcli_Nw_Profile="0:${SSIDHEX}:OPEN:NONE:00:1" + fi + fi + /wifi/iwpriv apcli0 set ApCliEnable=1 + else + ${WPABIN} -s -B -D sonos -i ath0 -b br0 -c ${WPACONFIG} ${WPADEBUG} + fi +fi + +if [ "${BONJOURNAME}z" != "z" ]; then + HOST="${BONJOURNAME}" +elif [ "${MODEL}" = "5" ] || [ "${MODEL}" = "12" ]; then + HOST="SonosZB" +else + HOST="SonosZP" +fi + +/sbin/route add 255.255.255.255 br0 +/sbin/route add -net 224.0.0.0 netmask 240.0.0.0 br0 + +if [ "${MODE}" = "station" ] || [ "${MODE}" = "wfacert" ]; then + DHCP_FLAGS="-z" +fi + +if [ -f /jffs/debug/static_ipaddr ]; then + ifconfig br0 $(cat /jffs/debug/static_ipaddr) + rm -f /var/run/waitforip +else + if [ "${MODEL}" != "5" ]; then + count=1 + while pidof udhcpc > /dev/null + do + sleep 1 + + if [ $count -gt 5 ]; then + killall -SIGKILL udhcpc + break + fi + count=`expr $count + 1` + done + fi + + /sbin/udhcpc -f -s /etc/dhcp.script -i br0 -w ath0 -h "${HOST}" -d access.bestbuy.com ${DHCP_FLAGS} & +fi + +if [ "${MODE}" = "wfacert" ]; then + /sbin/udhcpc -f -s /etc/dhcp.eth0.script -i eth0 -p /tmp/udhcpc.eth0.pid -h "${HOST}" ${DHCP_FLAGS} & +fi + +exit 0 diff --git a/devices/ZP120/filesystems/prodfs/usr/sbin/setmac b/devices/ZP120/filesystems/prodfs/usr/sbin/setmac new file mode 100755 index 0000000..881646d Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/usr/sbin/setmac differ diff --git a/devices/ZP120/filesystems/prodfs/usr/sbin/telnetd b/devices/ZP120/filesystems/prodfs/usr/sbin/telnetd new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/usr/sbin/telnetd @@ -0,0 +1 @@ +../../bin/busybox \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/var b/devices/ZP120/filesystems/prodfs/var new file mode 120000 index 0000000..5b7d979 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/var @@ -0,0 +1 @@ +/ramdisk/var \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/wifi/N/ath_driver.o b/devices/ZP120/filesystems/prodfs/wifi/N/ath_driver.o new file mode 100644 index 0000000..e685610 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/wifi/N/ath_driver.o differ diff --git a/devices/ZP120/filesystems/prodfs/wifi/N/ath_hal.o b/devices/ZP120/filesystems/prodfs/wifi/N/ath_hal.o new file mode 100644 index 0000000..98fca5f Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/wifi/N/ath_hal.o differ diff --git a/devices/ZP120/filesystems/prodfs/wifi/N/athconfig b/devices/ZP120/filesystems/prodfs/wifi/N/athconfig new file mode 120000 index 0000000..268c06e --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/wifi/N/athconfig @@ -0,0 +1 @@ +/wifi/athconfig \ No newline at end of file diff --git a/devices/ZP120/filesystems/prodfs/wifi/athconfig b/devices/ZP120/filesystems/prodfs/wifi/athconfig new file mode 100755 index 0000000..05697fc Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/wifi/athconfig differ diff --git a/devices/ZP120/filesystems/prodfs/wifi/netstartd b/devices/ZP120/filesystems/prodfs/wifi/netstartd new file mode 100755 index 0000000..0390553 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/wifi/netstartd differ diff --git a/devices/ZP120/filesystems/prodfs/wifi/wacd b/devices/ZP120/filesystems/prodfs/wifi/wacd new file mode 100755 index 0000000..65c2d02 Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/wifi/wacd differ diff --git a/devices/ZP120/filesystems/prodfs/wifi/wpa_supplicant b/devices/ZP120/filesystems/prodfs/wifi/wpa_supplicant new file mode 100755 index 0000000..438c71f Binary files /dev/null and b/devices/ZP120/filesystems/prodfs/wifi/wpa_supplicant differ diff --git a/devices/ZP120/filesystems/prodfs/wifi/wpaconfig b/devices/ZP120/filesystems/prodfs/wifi/wpaconfig new file mode 100755 index 0000000..d004ff7 --- /dev/null +++ b/devices/ZP120/filesystems/prodfs/wifi/wpaconfig @@ -0,0 +1,87 @@ +#!/bin/sh + +if [ "${#1}" -eq "0" ]; then + echo "usage: ${0} [wpa config file]" + exit +fi + +if [ "${#2}" -ne "0" ]; then + WPACONFIG=${2} +else + WPACONFIG=/var/run/wpa_supplicant.conf +fi + +if [ -f /jffs/debug/wpa_proto ]; then + WPAPROTO=`cat /jffs/debug/wpa_proto` +fi +if [ -f /jffs/debug/wpa_ptk ]; then + WPAPTK=`cat /jffs/debug/wpa_ptk` +fi +if [ -f /jffs/debug/wpa_gtk ]; then + WPAGTK=`cat /jffs/debug/wpa_gtk` +fi + +echo "eapol_version=1" > ${WPACONFIG} +echo "ap_scan=1" >> ${WPACONFIG} + +print_entry() +{ + SSIDHEX=$1 + KEYHEX=$2 + + if [ ${#KEYHEX} -gt "15" ] && [ ${#KEYHEX} -lt "129" ]; then + echo "network={" >> ${WPACONFIG} + echo "ssid=${SSIDHEX}" >> ${WPACONFIG} + echo "scan_ssid=1" >> ${WPACONFIG} + echo "psk=${KEYHEX}" >> ${WPACONFIG} + if [ "${#WPAPROTO}" -ne "0" ];then + echo "proto=${WPAPROTO}" >> ${WPACONFIG} + fi + if [ "${#WPAPTK}" -ne "0" ];then + echo "pairwise=${WPAPTK}" >> ${WPACONFIG} + fi + if [ "${#WPAGTK}" -ne "0" ];then + echo "group=${WPAGTK}" >> ${WPACONFIG} + fi + echo "priority=2" >> ${WPACONFIG} + echo "}" >> ${WPACONFIG} + fi + + if [ ${#KEYHEX} -eq "10" ] || [ ${#KEYHEX} -eq "20" ] || [ ${#KEYHEX} -eq "26" ] || [ ${#KEYHEX} -eq "52" ]; then + echo "network={" >> ${WPACONFIG} + echo "ssid=${SSIDHEX}" >> ${WPACONFIG} + echo "scan_ssid=1" >> ${WPACONFIG} + echo "wep_key0=${KEYHEX}" >> ${WPACONFIG} + echo "wep_tx_keyidx=0" >> ${WPACONFIG} + echo "key_mgmt=NONE" >> ${WPACONFIG} + echo "priority=1" >> ${WPACONFIG} + echo "}" >> ${WPACONFIG} + fi + + echo "network={" >> ${WPACONFIG} + echo "ssid=${SSIDHEX}" >> ${WPACONFIG} + echo "scan_ssid=1" >> ${WPACONFIG} + echo "key_mgmt=NONE" >> ${WPACONFIG} + echo "}" >> ${WPACONFIG} + + /wifi/athconfig stassidlistadd ath0 ${SSIDHEX} ${#KEYHEX} +} + +/wifi/athconfig stassidlistclr ath0 + +if [ "${SSID_FILE}" -eq "1" ]; +then + while read LINE + do + SSIDHEX=`echo "${LINE}" | /usr/sbin/keyval ^SSID | cut -d: -f 1` + KEYHEX=`echo "${LINE}" | /usr/sbin/keyval ^SSID | cut -d: -f 2` + + if [ "${#SSIDHEX}" -ne "0" ]; then + print_entry ${SSIDHEX} ${KEYHEX} + fi + done < ${1} +else + SSIDHEX=`/usr/sbin/keyval ^NFWSSID ${1}` + KEYHEX=`/usr/sbin/keyval ^NFWPwd ${1}` + print_entry ${SSIDHEX} ${KEYHEX} +fi