Commit 30c15cfc authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

updated defaults

parent cd9c687b
...@@ -40,7 +40,7 @@ function reload() { ...@@ -40,7 +40,7 @@ function reload() {
} }
function mount_hdd(callback) { function mount_hdd(callback) {
makeRequest('camogm_interface.php','?cmd=mount',callback); makeRequest('camogm_interface.php','?cmd=mount',callback);
document.getElementById('directory').value = "/var/hdd/"; document.getElementById('directory').value = "/mnt/sda1/";
document.getElementById('mount_hdd_button').style.display = "none"; document.getElementById('mount_hdd_button').style.display = "none";
} }
...@@ -56,7 +56,7 @@ function process_mount_hdd(xmldoc) { ...@@ -56,7 +56,7 @@ function process_mount_hdd(xmldoc) {
function mount_custom_partition(partition) { function mount_custom_partition(partition) {
if (document.getElementById("mount_point").value != "") { if (document.getElementById("mount_point").value != "") {
makeRequest('camogm_interface.php','?cmd=mount&partition='+partition+'&mountpoint='+document.getElementById("mount_point").value,"scan_devices()"); makeRequest('camogm_interface.php','?cmd=mount&partition='+partition+'&mountpoint='+document.getElementById("mount_point").value,"scan_devices()");
document.getElementById('directory').value = "/var/hdd/"; document.getElementById('directory').value = "/mnt/sda1/";
document.getElementById('mount_hdd_button').style.display = "none"; document.getElementById('mount_hdd_button').style.display = "none";
} }
} }
...@@ -137,7 +137,7 @@ function process_scan_devices(xmldoc) { ...@@ -137,7 +137,7 @@ function process_scan_devices(xmldoc) {
content += "<tr><td></td><td>"+partition+"</td><td><input id='mount_point' size='8' type='text'"; content += "<tr><td></td><td>"+partition+"</td><td><input id='mount_point' size='8' type='text'";
//if (partition=="/dev/hda1"){ //if (partition=="/dev/hda1"){
if (partition=="/dev/sda1"){ if (partition=="/dev/sda1"){
content += " value='/var/hdd'"; content += " value='/mnt/sda1'";
} }
content += "></td><td>" + xmldoc.getElementsByTagName('size')[i].firstChild.data + "</td><td>" + '</td><td><a href="#" onClick="mount_custom_partition(\''+partition+'\');">mount</a></td></tr>'; content += "></td><td>" + xmldoc.getElementsByTagName('size')[i].firstChild.data + "</td><td>" + '</td><td><a href="#" onClick="mount_custom_partition(\''+partition+'\');">mount</a></td></tr>';
} else { } else {
...@@ -158,7 +158,7 @@ function process_scan_devices(xmldoc) { ...@@ -158,7 +158,7 @@ function process_scan_devices(xmldoc) {
function find_selected_device(){ function find_selected_device(){
for(var i=0;i<devices.length;i++){ for(var i=0;i<devices.length;i++){
if (devices[i]=="/dev/hda1") selected_device = devices[i]; if (devices[i]=="/dev/sda1") selected_device = devices[i];
if (devices[i]=="/dev/sda1") selected_device = devices[i]; if (devices[i]=="/dev/sda1") selected_device = devices[i];
break; break;
} }
......
...@@ -344,7 +344,7 @@ ...@@ -344,7 +344,7 @@
fprintf($fcmd, "prefix=%s;\n", $xml_directory); fprintf($fcmd, "prefix=%s;\n", $xml_directory);
} }
else else
fprintf($fcmd, "prefix=%s;\n", "/var/hdd/"); fprintf($fcmd, "prefix=%s;\n", "/mnt/sda1/");
} }
} }
...@@ -660,7 +660,7 @@ ...@@ -660,7 +660,7 @@
<p style="color:red;">not operational yet!</p> <p style="color:red;">not operational yet!</p>
Detected Audio Hardware: <span id="ajax_detected_audio_hardware">loading...</span> <a href="#" onClick="check_audio_hardware();"><img src="images/reload.png" style="bottom:-2px; position:relative;"></a><br /> Detected Audio Hardware: <span id="ajax_detected_audio_hardware">loading...</span> <a href="#" onClick="check_audio_hardware();"><img src="images/reload.png" style="bottom:-2px; position:relative;"></a><br />
<br /> <br />
Test Audio Playback: <a href="#" onClick="test_audio_playback('/var/hdd/Congas.wav');"><img src="images/play_audio.png" style="position:relative; top:3px;"></a><br /> Test Audio Playback: <a href="#" onClick="test_audio_playback('/mnt/sda1/Congas.wav');"><img src="images/play_audio.png" style="position:relative; top:3px;"></a><br />
<br /> <br />
<form method="POST" id="audioform"> <form method="POST" id="audioform">
<table cellspacing="5px"> <table cellspacing="5px">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment