Commit Graph

126 Commits

Author SHA1 Message Date
svenhoefer
0e9396bc58 hdd_menu.cpp: kill hdidle if hddsleep is active
Signed-off-by: Thilo Graf <dbt@novatux.de>
2019-02-11 10:25:36 +01:00
Markus Volk
573d7d4ac6 hdd_menu.cpp: add support for sgdisk; fix sfdisk usage
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Thilo Graf <dbt@novatux.de>

- sfdisk is used primarily
- ensures detection of large hard drives
- using gpt tables with sfdisk or sgdisk

Note:
busybox fdisk doesn't support gpt tables and no large hard disks,
but fallback to old behavior should work unchanged
newer util versions of fdisk can do this but with different syntax.

Please test.
2018-05-09 12:28:24 +02:00
svenhoefer
ef9e5e21cd - hdd_menu: use new marker icons
Signed-off-by: Thilo Graf <dbt@novatux.de>
2018-01-05 00:52:58 +01:00
svenhoefer
20d3cd3d2a - hdd-menu: hide mmcblk devices from hdd-menu
Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-10-29 21:29:50 +01:00
Jacek Jendrzej
5ba69b43ec fix compil after merge 2017-10-02 14:23:17 +02:00
Jacek Jendrzej
7ad4a0e6cc Merge branch 'master' into pu/mp 2017-10-02 13:56:25 +02:00
Stefan Seyfried
0d9139054a remove "using namespace std" from header files
"using namespace std" in headers is considered bad practice, so move it
either into the respective cpp files or (for files which have lots of
other std::xxx usage anyway) just write it out explicitly.
Looking at the headers and the affected cpp files, one can actually see
why it is bad practice, as it's spreading very far ;-)
2017-10-02 13:43:57 +02:00
Jacek Jendrzej
4fc73acffc Merge branch 'master' into pu/mp 2017-09-29 10:49:27 +02:00
svenhoefer
99cc7f850a - rcinput: simplify calcTimeoutEnd() calls; 0 is "off" by default now 2017-09-29 10:34:23 +02:00
Jacek Jendrzej
ca83324763 Merge branch 'master' into pu/mp 2017-06-07 16:20:47 +02:00
Striper
327dbbed1e hdd_menu.cpp: remove "-T largefile" parameter
Some users experience problems with too low amount of inodes (No space
left on device but only a few percent of the device are actually used).
To fix this, simply use default settings. This will give us a much
higher amount of inodes on the hard drive but will waste a bit more
space on the device for inode reservation.

Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-06-07 14:17:11 +02:00
Stefan Seyfried
8b47699447 Merge remote-tracking branch 'tuxbox/master' 2017-02-11 11:18:45 +01:00
svenhoefer
aed22b3788 - hdd_menu: fix c/p error 2017-02-06 23:21:01 +01:00
svenhoefer
0411359866 - hdd_menu: fix hd-idle/hdparm logic; fix small memleaks 2017-02-06 21:09:42 +01:00
Stefan Seyfried
c6d7968381 Merge remote-tracking branch 'tuxbox/master' 2016-12-04 18:02:51 +01:00
Thilo Graf
74473d0ebe CHDDMenuHandler: simplify and fix hintbox calls
Hints were not closed after lost scope. Explicit hide() is required.
2016-11-20 22:49:07 +01:00
Thilo Graf
dde298b1b7 CMsgBox: rework msgbox classes with Window class implementation
Replacing messagebox, hintbox_ext and some derivated parts with
basic class hintbox and derivated class CMsgBox. This should unify
window handling and avoids maintain of multiple classes with quasi
same purpose and adds more functionality.

TODO: fix and optimize details
2016-10-24 10:31:24 +02:00
Stefan Seyfried
13ab1ebc8a Merge remote-tracking branch 'tuxbox/master'
* needs compile fixes
* needs additional tests, of course :-)
2016-10-22 11:37:40 +02:00
svenhoefer
5b6421b8b0 - hdd_menu: add key confirmation to hdd-check result 2016-05-21 21:42:27 +02:00
Stefan Seyfried
eeee5bacab Merge remote-tracking branch 'uncool/cst-next'
This need buildfixes and some functional updates...
2015-12-13 17:41:55 +01:00
svenhoefer
9041bff59c - remove w_max()-calls to define menu-width, because ...
w-max() returns a pixel-value, but menus need a percentage-value.
2015-04-24 09:11:04 +02:00
Stefan Seyfried
92fcc879b4 Merge remote-tracking branch 'test/cst-next' 2015-03-07 20:09:44 +01:00
svenhoefer
b07943807e - hdd_menu: resort filesystem struct, to get ext4 as default value 2015-03-02 12:28:28 +01:00
Stefan Seyfried
ae21edb141 remove useless sync() calls
unless we had serious kernel bugs, those sync() calls
serve no useful purpose
2015-02-25 21:43:41 +01:00
Stefan Seyfried
d1836f497c hdd_menu: fix device name on fdisk invocation 2015-02-22 18:47:29 +01:00
Stefan Seyfried
f8066b5a3e hdd_menu: use realpath(3) instead of calling system("readlink") 2015-02-10 14:11:20 +01:00
[CST] Focus
6d287e46f7 Revert "hdd_menu: only offer filesystems with kernel support"
- breaks user-space fs like exfat

This reverts commit 141872565e.
2015-02-10 15:07:28 +03:00
[CST] Focus
990e79aa6f Revert "hdd_menu: fix is_mounted for device links"
- broken in case readlink do not support -f switch -> filesystem always 'mounted'

This reverts commit 415e7351e1.
2015-02-10 15:05:05 +03:00
[CST] Focus
342180a28b Revert "hdd_menu: do not handle the rootfs or fs without kernel support"
This reverts commit f7bb7a70cb.
2015-02-10 15:04:52 +03:00
Stefan Seyfried
d411f6d996 hdd_menu: my_popen() needs waitpid to avoid zombies 2015-02-09 13:47:32 +01:00
Stefan Seyfried
f7bb7a70cb hdd_menu: do not handle the rootfs or fs without kernel support 2015-02-09 13:47:32 +01:00
Stefan Seyfried
415e7351e1 hdd_menu: fix is_mounted for device links
It is possible to mount e.g. '/dev/disk/by-label/ext_drive', but
is_mounted did not handle this case. Fix that.
2015-02-09 13:47:32 +01:00
Stefan Seyfried
17395a7fed hdd_menu: also recognize recordingdir if it is a symlink
...like "/media/by-label/foo/movies", no need to reset configuration
in that case
2015-02-09 13:47:32 +01:00
Stefan Seyfried
141872565e hdd_menu: only offer filesystems with kernel support 2015-02-09 13:47:32 +01:00
Stefan Seyfried
d04f7406a7 mdev_helper/hdd_menu: add udev support
busybox/mdev fills the MDEV variable without /dev/ prefix,
udev fills DEVNAME with /dev/ prefix. Handle both variants.
2015-02-09 13:47:32 +01:00
Stefan Seyfried
4675f403a6 hdd_menu: do not handle the rootfs or fs without kernel support 2015-02-08 15:22:15 +01:00
Stefan Seyfried
33730236d6 hdd_menu: fix is_mounted for device links
It is possible to mount e.g. '/dev/disk/by-label/ext_drive', but
is_mounted did not handle this case. Fix that.
2015-02-08 15:11:37 +01:00
Stefan Seyfried
b3c82180a5 hdd_menu: also recognize recordingdir if it is a symlink
...like "/media/by-label/foo/movies", no need to reset configuration
in that case
2015-02-08 13:07:51 +01:00
Stefan Seyfried
619e2a0234 hdd_menu: only offer filesystems with kernel support 2015-02-08 12:27:03 +01:00
Stefan Seyfried
67bd1738a6 hdd_menu: my_popen() needs waitpid to avoid zombies 2015-02-08 00:55:44 +01:00
Stefan Seyfried
48d3e45eb7 mdev_helper/hdd_menu: add udev support
busybox/mdev fills the MDEV variable without /dev/ prefix,
udev fills DEVNAME with /dev/ prefix. Handle both variants.
2015-02-07 21:38:33 +01:00
Stefan Seyfried
69c4dbbdba Merge remote-tracking branch 'check/cst-next'
needs build- and functional fixes

Conflicts:
	configure.ac
	data/icons/shutdown.jpg
	data/icons/start.jpg
	data/locale/deutsch.locale
	data/locale/english.locale
	lib/libmd5sum/md5.c
	src/driver/scanepg.cpp
	src/driver/streamts.cpp
	src/driver/vfd.cpp
	src/driver/vfd.h
	src/driver/volume.cpp
	src/eitd/dmx.cpp
	src/eitd/xmlutil.cpp
	src/gui/Makefile.am
	src/gui/audiomute.cpp
	src/gui/channellist.cpp
	src/gui/dboxinfo.cpp
	src/gui/epgview.cpp
	src/gui/eventlist.cpp
	src/gui/filebrowser.cpp
	src/gui/hdd_menu.cpp
	src/gui/infoviewer.cpp
	src/gui/infoviewer_bb.cpp
	src/gui/infoviewer_bb.h
	src/gui/keybind_setup.cpp
	src/gui/luainstance.cpp
	src/gui/luainstance.h
	src/gui/miscsettings_menu.cpp
	src/gui/moviebrowser.cpp
	src/gui/movieplayer.cpp
	src/gui/osd_progressbar_setup.cpp
	src/gui/osd_progressbar_setup.h
	src/gui/osd_setup.cpp
	src/gui/osdlang_setup.cpp
	src/gui/personalize.cpp
	src/gui/plugins.cpp
	src/gui/plugins.h
	src/gui/scan.cpp
	src/gui/scan_setup.cpp
	src/gui/update_settings.cpp
	src/gui/user_menue.cpp
	src/gui/user_menue_setup.cpp
	src/gui/videosettings.cpp
	src/gui/widget/buttons.cpp
	src/gui/widget/menue.cpp
	src/gui/widget/menue.h
	src/gui/widget/progresswindow.cpp
	src/neutrino.cpp
	src/neutrino_menue.cpp
	src/nhttpd/yhttpd.cpp
	src/system/helpers.cpp
	src/system/locals.h
	src/system/locals_intern.h
	src/system/setting_helpers.cpp
	src/zapit/lib/zapitclient.cpp
	src/zapit/src/fastscan.cpp
	src/zapit/src/frontend.cpp
	src/zapit/src/getservices.cpp
	src/zapit/src/scan.cpp
	src/zapit/src/scannit.cpp
	src/zapit/src/scanpmt.cpp
	src/zapit/src/transponder.cpp
	src/zapit/src/zapit.cpp
2014-12-25 18:03:08 +01:00
martii
e84782bc4c drop explicit CMenuForwarder icon assignments
Conflicts:
	src/gui/3dsetup.cpp
	src/gui/bouquetlist.cpp
	src/gui/hdd_menu.cpp
	src/gui/keybind_setup.cpp
	src/gui/mediaplayer.cpp
	src/gui/mediaplayer_setup.cpp
	src/gui/moviebrowser.cpp
	src/gui/network_setup.cpp
	src/gui/nfs.cpp
	src/gui/osd_setup.cpp
	src/gui/osdlang_setup.cpp
	src/gui/parentallock_setup.cpp
	src/gui/personalize.cpp
	src/gui/proxyserver_setup.cpp
	src/gui/record_setup.cpp
	src/gui/scan_setup.cpp
	src/gui/screensetup.cpp
	src/gui/settings_manager.cpp
	src/gui/timerlist.cpp
	src/gui/update_menue.cpp
	src/gui/vfd_setup.cpp
	src/gui/videosettings.cpp
	src/neutrino_menue.cpp
2014-09-15 11:44:08 +04:00
[CST] Focus
9b697fb52b gui/hdd_menu.cpp: prevent divide by zero 2014-09-12 11:35:58 +04:00
[CST] Focus
05558331f7 gui/hdd_menu.cpp: ask to set recording path after mount (hotplug or format) 2014-05-30 14:57:17 +04:00
Jacek Jendrzej
8acad336ba src/gui/hdd_menu.cpp: remove '\n' for all msg 2014-05-10 19:25:59 +02:00
[CST] Focus
bbcd7330a8 gui/hdd_menu.cpp: add question to set record directory to formatted drive;
mark partition used for recording with icon, disable umount
2014-05-01 19:03:09 +04:00
[CST] Focus
55167990b5 gui/hdd_menu.cpp: add question and show format menu, if plugged device not mounted 2014-04-30 17:15:25 +04:00
[CST] Focus
ea9e950fd3 gui/hdd_menu.cpp: add mount point mkdir, if mdev not used 2014-04-29 13:44:50 +04:00
Stefan Seyfried
44ba8fafca Merge remote-tracking branch 'check/next-cc'
build-tested only, needs fixing

Conflicts:
	data/locale/deutsch.locale
	data/locale/english.locale
	src/Makefile.am
	src/driver/rcinput.cpp
	src/driver/streamts.cpp
	src/eitd/sectionsd.cpp
	src/gui/Makefile.am
	src/gui/bouquetlist.cpp
	src/gui/hdd_menu.cpp
	src/gui/luainstance.cpp
	src/gui/luainstance.h
	src/gui/moviebrowser.cpp
	src/gui/movieplayer.cpp
	src/gui/pluginlist.cpp
	src/gui/plugins.cpp
	src/gui/plugins.h
	src/gui/scan.cpp
	src/gui/scan_setup.cpp
	src/gui/user_menue.cpp
	src/gui/videosettings.cpp
	src/gui/widget/menue.cpp
	src/neutrino.cpp
	src/neutrinoMessages.h
	src/system/locals.h
	src/system/locals_intern.h
	src/zapit/include/zapit/scan.h
	src/zapit/src/femanager.cpp
	src/zapit/src/frontend.cpp
	src/zapit/src/getservices.cpp
	src/zapit/src/transponder.cpp
2014-04-27 19:14:06 +02:00