diff options
28 files changed, 110 insertions, 58 deletions
diff --git a/applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js b/applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js index f510229523..e07413bad4 100644 --- a/applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js +++ b/applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js @@ -2,43 +2,95 @@ 'require form'; 'require fs'; 'require view'; +'require uci'; + +function disk(devs, options, section_id) { + var v = uci.get('hd-idle', section_id, 'disk') || ''; + var disk = devs.find(function(itm){ return itm.name == v; }); + var out = ''; + if(disk != undefined){ + out = options.map(function(opt){ return disk[opt].trim(); }); + out = out.filter(function(o){ return o != ''; }); + out = out.join(' '); + } + return E('span', out); +} + +function prettytime(section_id) { + return E('span', (uci.get('hd-idle', section_id, 'idle_time_interval') || '') + + ' ' + + (uci.get('hd-idle', section_id, 'idle_time_unit') || '')); +} return view.extend({ load: function() { - return fs.list('/dev').then(function(devs) { - return devs.filter(function(dev) { - return dev.type == 'block' ? dev.name.match(/^[sh]d[a-z]$/) : false; - }); + return fs.exec("/usr/bin/lsblk", ["-n", "-J", "-do", "NAME,TRAN,ROTA,RM,VENDOR,MODEL"]).then(function(res) { + if( res.code ) + return []; + var json = JSON.parse(res.stdout); + return ( 'blockdevices' in json ) ? json['blockdevices'] : []; }); }, render: function(devs) { var m, s, o; - m = new form.Map('hd-idle', _('HDD Idle'), _('HDD Idle is a utility program for spinning-down external disks after a period of idle time.')); + m = new form.Map('hd-idle', _('HDD Idle'), _('HDD Idle is a utility program for spinning-down disks after a period of idle time.')); - s = m.section(form.TypedSection, 'hd-idle', _('Settings')); + s = m.section(form.GridSection, 'hd-idle', _('Settings')); s.anonymous = true; s.addremove = true; + s.sortable = true; s.addbtntitle = _('Add new hdd setting...'); - o = s.option(form.Flag, 'enabled', _('Enable')); + + s.tab('general', _('Disk Settings')); + + + o = s.taboption('general', form.Flag, 'enabled', _('Enable')); o.rmempty = false; + o.editable = true; - o = s.option(form.Value, 'disk', _('Disk')); + o = s.taboption('general', form.ListValue, 'disk', _('Disk')); devs.forEach(function(dev) { - o.value(dev.name); + if( dev.rota ) { + o.value(dev.name, `/dev/${dev.name} [${dev.tran}:${dev.vendor} ${dev.model}]`); + } }); - o = s.option(form.Value, 'idle_time_interval', _('Idle time')); + + o = s.taboption('general', form.Value, '_bus', _('Bus')); + o.rawhtml = true; + o.write = function() {}; + o.remove = function() {}; + o.modalonly = false; + o.textvalue = disk.bind(o, devs, ['tran']); + + o = s.taboption('general', form.Value, '_vendorModel', _('Vendor / Model')); + o.rawhtml = true; + o.write = function() {}; + o.remove = function() {}; + o.modalonly = false; + o.textvalue = disk.bind(o, devs, ['vendor', 'model'] ); + + o = s.taboption('general', form.Value, 'idle_time_interval', _('Idle time')); + o.modalonly = true; o.default = 10; - o = s.option(form.ListValue, 'idle_time_unit', _('Idle time unit')); - o.value('seconds', _('s', 'Abbreviation for seconds')); - o.value('minutes', _('min', 'Abbreviation for minutes')); - o.value('hours', _('h', 'Abbreviation for hours')); - o.value('days', _('d', 'Abbreviation for days')); + o = s.taboption('general', form.ListValue, 'idle_time_unit', _('Idle time unit')); + o.modalonly = true; + o.value('seconds', _('seconds', 'Abbreviation for seconds')); + o.value('minutes', _('minutes', 'Abbreviation for minutes')); + o.value('hours', _('hours', 'Abbreviation for hours')); + o.value('days', _('days', 'Abbreviation for days')); o.default = 'minutes'; + o = s.taboption('general', form.Value, '_prettytime', _('Idle time')); + o.rawhtml = true; + o.write = function() {}; + o.remove = function() {}; + o.modalonly = false; + o.textvalue = prettytime.bind(o); + return m.render(); } }); diff --git a/applications/luci-app-hd-idle/po/ca/hd-idle.po b/applications/luci-app-hd-idle/po/ca/hd-idle.po index e776767e8f..0424dfac75 100644 --- a/applications/luci-app-hd-idle/po/ca/hd-idle.po +++ b/applications/luci-app-hd-idle/po/ca/hd-idle.po @@ -39,10 +39,10 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"HDD Idle és un programa per ralentitzar els discos externs després d'un " +"HDD Idle és un programa per ralentitzar els discos després d'un " "període de temps inactiu." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/cs/hd-idle.po b/applications/luci-app-hd-idle/po/cs/hd-idle.po index 5fc1769823..d07920d82b 100644 --- a/applications/luci-app-hd-idle/po/cs/hd-idle.po +++ b/applications/luci-app-hd-idle/po/cs/hd-idle.po @@ -39,10 +39,10 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"HDD Idle je utilita pro vypnutí externích pevných disků po určité době " +"HDD Idle je utilita pro vypnutí pevných disků po určité době " "nečinnosti." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/de/hd-idle.po b/applications/luci-app-hd-idle/po/de/hd-idle.po index f18552286d..1c1233f85a 100644 --- a/applications/luci-app-hd-idle/po/de/hd-idle.po +++ b/applications/luci-app-hd-idle/po/de/hd-idle.po @@ -37,10 +37,10 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"HDD Idle ist ein Hilfsprogramm um externe Festplatten nach einer " +"HDD Idle ist ein Hilfsprogramm um Festplatten nach einer " "festgelegten Leerlaufzeit herunter zu fahren." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/el/hd-idle.po b/applications/luci-app-hd-idle/po/el/hd-idle.po index c6b514e041..f8d0acbaa5 100644 --- a/applications/luci-app-hd-idle/po/el/hd-idle.po +++ b/applications/luci-app-hd-idle/po/el/hd-idle.po @@ -36,7 +36,7 @@ msgstr "" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" diff --git a/applications/luci-app-hd-idle/po/en/hd-idle.po b/applications/luci-app-hd-idle/po/en/hd-idle.po index 3e1e1d431d..a673503315 100644 --- a/applications/luci-app-hd-idle/po/en/hd-idle.po +++ b/applications/luci-app-hd-idle/po/en/hd-idle.po @@ -34,10 +34,10 @@ msgstr "" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/es/hd-idle.po b/applications/luci-app-hd-idle/po/es/hd-idle.po index 34f4e8c8cc..6da8ed6c39 100644 --- a/applications/luci-app-hd-idle/po/es/hd-idle.po +++ b/applications/luci-app-hd-idle/po/es/hd-idle.po @@ -37,10 +37,10 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"HDD Idle es un programa que administra la suspensión de discos externos tras " +"HDD Idle es un programa que administra la suspensión de discos tras " "un tiempo de inactividad." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/fr/hd-idle.po b/applications/luci-app-hd-idle/po/fr/hd-idle.po index b39cbd6ccc..00bd0fb24f 100644 --- a/applications/luci-app-hd-idle/po/fr/hd-idle.po +++ b/applications/luci-app-hd-idle/po/fr/hd-idle.po @@ -37,10 +37,10 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"HDD Idle est un utilitaire pour arrêter la rotation des disques externes " +"HDD Idle est un utilitaire pour arrêter la rotation des disques " "après une période d'inactivité." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/he/hd-idle.po b/applications/luci-app-hd-idle/po/he/hd-idle.po index 9e09f2f3c7..68d78728ca 100644 --- a/applications/luci-app-hd-idle/po/he/hd-idle.po +++ b/applications/luci-app-hd-idle/po/he/hd-idle.po @@ -39,10 +39,10 @@ msgstr "" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"HDD Idle הינה תוכנת שירות שמטרתה להקטין את מהירות הסיבוב של כוננים חיצוניים " +"HDD Idle הינה תוכנת שירות שמטרתה להקטין את מהירות הסיבוב של כוננים " "לאחר זמן מסוים של חוסר פעילות." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/hu/hd-idle.po b/applications/luci-app-hd-idle/po/hu/hd-idle.po index d72dfa4679..507df3af4a 100644 --- a/applications/luci-app-hd-idle/po/hu/hd-idle.po +++ b/applications/luci-app-hd-idle/po/hu/hd-idle.po @@ -41,7 +41,7 @@ msgid "" "HDD Idle is a utility program for spinning-down external disks after a " "period of idle time." msgstr "" -"HDD Idle egy a külső lemezek adott üresjárati idő után történő leállítására " +"HDD Idle egy a lemezek adott üresjárati idő után történő leállítására " "szolgáló segédprogram." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/it/hd-idle.po b/applications/luci-app-hd-idle/po/it/hd-idle.po index 3af5814d7b..3fcfa6673f 100644 --- a/applications/luci-app-hd-idle/po/it/hd-idle.po +++ b/applications/luci-app-hd-idle/po/it/hd-idle.po @@ -37,10 +37,10 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"HDD Idle è un programma per mettere in standby i dischi esterni dopo un " +"HDD Idle è un programma per mettere in standby i dischi dopo un " "periodo di inattività." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/ja/hd-idle.po b/applications/luci-app-hd-idle/po/ja/hd-idle.po index 4de389f991..c2421da6e9 100644 --- a/applications/luci-app-hd-idle/po/ja/hd-idle.po +++ b/applications/luci-app-hd-idle/po/ja/hd-idle.po @@ -40,7 +40,7 @@ msgid "" "HDD Idle is a utility program for spinning-down external disks after a " "period of idle time." msgstr "" -"HDD Idleはアイドル時に外部ディスクをスピンダウンさせるための、ユーティリティ" +"HDD Idleはアイドル時にィスクをスピンダウンさせるための、ユーティリティ" "プログラムです。" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/ms/hd-idle.po b/applications/luci-app-hd-idle/po/ms/hd-idle.po index 50d7ce5a10..bd1a7f4098 100644 --- a/applications/luci-app-hd-idle/po/ms/hd-idle.po +++ b/applications/luci-app-hd-idle/po/ms/hd-idle.po @@ -35,7 +35,7 @@ msgstr "" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" diff --git a/applications/luci-app-hd-idle/po/nb_NO/hd-idle.po b/applications/luci-app-hd-idle/po/nb_NO/hd-idle.po index 6fff3a8ed7..df6017cc95 100644 --- a/applications/luci-app-hd-idle/po/nb_NO/hd-idle.po +++ b/applications/luci-app-hd-idle/po/nb_NO/hd-idle.po @@ -33,10 +33,10 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"HDD Idle er et verktøy for å spinne ned eksterne disker etter en periode med " +"HDD Idle er et verktøy for å spinne ned disker etter en periode med " "inaktivitet." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/pl/hd-idle.po b/applications/luci-app-hd-idle/po/pl/hd-idle.po index 9f28e3d3bb..41cdd38385 100644 --- a/applications/luci-app-hd-idle/po/pl/hd-idle.po +++ b/applications/luci-app-hd-idle/po/pl/hd-idle.po @@ -38,10 +38,10 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"HDD Idle jest narzędziem do zwalniania obrotów zewnętrznych dysków po " +"HDD Idle jest narzędziem do zwalniania obrotów dysków po " "określonym czasie bezczynności." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/pt/hd-idle.po b/applications/luci-app-hd-idle/po/pt/hd-idle.po index 511fba8797..023dd89c2e 100644 --- a/applications/luci-app-hd-idle/po/pt/hd-idle.po +++ b/applications/luci-app-hd-idle/po/pt/hd-idle.po @@ -37,11 +37,11 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" "HDD Idle é um programa utilitário para activar o modo \"economia de energia" -"\" (spinning-down) de discos externos após um período de ociosidade." +"\" (spinning-down) de discos após um período de ociosidade." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 msgid "Idle time" diff --git a/applications/luci-app-hd-idle/po/pt_BR/hd-idle.po b/applications/luci-app-hd-idle/po/pt_BR/hd-idle.po index 7439147a85..b4aadf8fc4 100644 --- a/applications/luci-app-hd-idle/po/pt_BR/hd-idle.po +++ b/applications/luci-app-hd-idle/po/pt_BR/hd-idle.po @@ -37,11 +37,11 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" "HDD Idle é um programa utilitário para ativar o modo \"economia de energia" -"\" (spinning-down) de discos externos após um período de ociosidade." +"\" (spinning-down) de discos após um período de ociosidade." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 msgid "Idle time" diff --git a/applications/luci-app-hd-idle/po/ro/hd-idle.po b/applications/luci-app-hd-idle/po/ro/hd-idle.po index b77b08f1fd..a8012b1592 100644 --- a/applications/luci-app-hd-idle/po/ro/hd-idle.po +++ b/applications/luci-app-hd-idle/po/ro/hd-idle.po @@ -39,10 +39,10 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"HDD Idle este un utilitar pentru a oprit din rotatie hard disc-urile externe " +"HDD Idle este un utilitar pentru a oprit din rotatie hard disc-urile " "dupa o anumita perioada de inactivitate." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/ru/hd-idle.po b/applications/luci-app-hd-idle/po/ru/hd-idle.po index 773f63e899..57b6014474 100644 --- a/applications/luci-app-hd-idle/po/ru/hd-idle.po +++ b/applications/luci-app-hd-idle/po/ru/hd-idle.po @@ -39,10 +39,10 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"Утилита HDD Idle позволяет замедлять внешние диски после определённого " +"Утилита HDD Idle позволяет замедлять диски после определённого " "времени бездействия." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/sk/hd-idle.po b/applications/luci-app-hd-idle/po/sk/hd-idle.po index acdd45be47..d7a7b100e9 100644 --- a/applications/luci-app-hd-idle/po/sk/hd-idle.po +++ b/applications/luci-app-hd-idle/po/sk/hd-idle.po @@ -35,7 +35,7 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "HDD Idle je program na uspanie disku po nastavenom čase." diff --git a/applications/luci-app-hd-idle/po/sv/hd-idle.po b/applications/luci-app-hd-idle/po/sv/hd-idle.po index 5ef5752978..bb97a6a498 100644 --- a/applications/luci-app-hd-idle/po/sv/hd-idle.po +++ b/applications/luci-app-hd-idle/po/sv/hd-idle.po @@ -35,7 +35,7 @@ msgstr "" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" diff --git a/applications/luci-app-hd-idle/po/templates/hd-idle.pot b/applications/luci-app-hd-idle/po/templates/hd-idle.pot index ac511d9e32..95b9923b88 100644 --- a/applications/luci-app-hd-idle/po/templates/hd-idle.pot +++ b/applications/luci-app-hd-idle/po/templates/hd-idle.pot @@ -24,7 +24,7 @@ msgstr "" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" diff --git a/applications/luci-app-hd-idle/po/tr/hd-idle.po b/applications/luci-app-hd-idle/po/tr/hd-idle.po index 34142514d4..cc24516a28 100644 --- a/applications/luci-app-hd-idle/po/tr/hd-idle.po +++ b/applications/luci-app-hd-idle/po/tr/hd-idle.po @@ -39,7 +39,7 @@ msgstr "Harddisk-Park" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" "HDD Idle, belirli bir zaman sonra diskleri beklemeye alan bir yardımcı " diff --git a/applications/luci-app-hd-idle/po/uk/hd-idle.po b/applications/luci-app-hd-idle/po/uk/hd-idle.po index d4380b6378..f31e7e25eb 100644 --- a/applications/luci-app-hd-idle/po/uk/hd-idle.po +++ b/applications/luci-app-hd-idle/po/uk/hd-idle.po @@ -40,10 +40,10 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"Засіб HDD Idle дозволяє уповільнювати зовнішні диски після певного часу " +"Засіб HDD Idle дозволяє уповільнювати диски після певного часу " "бездіяльності." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/vi/hd-idle.po b/applications/luci-app-hd-idle/po/vi/hd-idle.po index ec6d4a2942..c91ddd9f94 100644 --- a/applications/luci-app-hd-idle/po/vi/hd-idle.po +++ b/applications/luci-app-hd-idle/po/vi/hd-idle.po @@ -37,10 +37,10 @@ msgstr "HDD Idle" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "" -"HDD Idle là một chương trình tiện ích để quay các đĩa ngoài sau một khoảng " +"HDD Idle là một chương trình tiện ích để quay các đĩa sau một khoảng " "thời gian idle." #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 diff --git a/applications/luci-app-hd-idle/po/zh_Hans/hd-idle.po b/applications/luci-app-hd-idle/po/zh_Hans/hd-idle.po index c22d01ade2..9bad28e0f9 100644 --- a/applications/luci-app-hd-idle/po/zh_Hans/hd-idle.po +++ b/applications/luci-app-hd-idle/po/zh_Hans/hd-idle.po @@ -37,7 +37,7 @@ msgstr "硬盘休眠" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:17 msgid "" -"HDD Idle is a utility program for spinning-down external disks after a " +"HDD Idle is a utility program for spinning-down disks after a " "period of idle time." msgstr "硬盘休眠是控制当硬盘在空闲一段时间后进入休眠模式的工具。" diff --git a/applications/luci-app-hd-idle/po/zh_Hant/hd-idle.po b/applications/luci-app-hd-idle/po/zh_Hant/hd-idle.po index aff00c41f2..b72fd16b82 100644 --- a/applications/luci-app-hd-idle/po/zh_Hant/hd-idle.po +++ b/applications/luci-app-hd-idle/po/zh_Hant/hd-idle.po @@ -37,7 +37,7 @@ msgstr "硬碟休眠" msgid "" "HDD Idle is a utility program for spinning-down external disks after a " "period of idle time." -msgstr "HDD Idle是一個實用程式,用於在一段時間的空閒時間後對外部磁盤降低轉速。" +msgstr "HDD Idle是一個實用程式,用於在一段時間的空閒時間後對部磁盤降低轉速。" #: applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js:32 msgid "Idle time" diff --git a/applications/luci-app-hd-idle/root/usr/share/rpcd/acl.d/luci-app-hd-idle.json b/applications/luci-app-hd-idle/root/usr/share/rpcd/acl.d/luci-app-hd-idle.json index 4aa2f2997e..e82bf4f9f8 100644 --- a/applications/luci-app-hd-idle/root/usr/share/rpcd/acl.d/luci-app-hd-idle.json +++ b/applications/luci-app-hd-idle/root/usr/share/rpcd/acl.d/luci-app-hd-idle.json @@ -3,7 +3,7 @@ "description": "Grant UCI access for luci-app-hd-idle", "read": { "file": { - "/dev": [ "list" ] + "/usr/bin/lsblk -n -J -do NAME,TRAN,ROTA,RM,VENDOR,MODEL": [ "exec" ] }, "uci": [ "hd-idle" ] }, |