mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: empty disk list on busybox
This commit is contained in:
@@ -214,7 +214,7 @@ const _statusCmds = [
|
|||||||
'cat /proc/stat | grep cpu',
|
'cat /proc/stat | grep cpu',
|
||||||
'uptime',
|
'uptime',
|
||||||
'cat /proc/net/snmp',
|
'cat /proc/net/snmp',
|
||||||
'df -B 1K',
|
'df',
|
||||||
"cat /proc/meminfo | grep -E 'Mem|Swap'",
|
"cat /proc/meminfo | grep -E 'Mem|Swap'",
|
||||||
'cat /sys/class/thermal/thermal_zone*/type',
|
'cat /sys/class/thermal/thermal_zone*/type',
|
||||||
'cat /sys/class/thermal/thermal_zone*/temp',
|
'cat /sys/class/thermal/thermal_zone*/temp',
|
||||||
|
|||||||
@@ -437,9 +437,9 @@ class _SSHPageState extends State<SSHPage> with AutomaticKeepAliveClientMixin {
|
|||||||
bool get wantKeepAlive => true;
|
bool get wantKeepAlive => true;
|
||||||
|
|
||||||
Future<void> _initService() async {
|
Future<void> _initService() async {
|
||||||
final service = FlutterBackgroundService();
|
if (!isAndroid) return;
|
||||||
|
|
||||||
await service.configure(
|
await FlutterBackgroundService().configure(
|
||||||
androidConfiguration: AndroidConfiguration(
|
androidConfiguration: AndroidConfiguration(
|
||||||
onStart: _onStart,
|
onStart: _onStart,
|
||||||
autoStart: true,
|
autoStart: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user