system

package
v0.0.0-...-3ddbc71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package system keeps all cli prompt system tools commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfRoot

func CheckIfRoot() error

CheckIfRoot checks if the application is runned with root privileges.

func GetRootDevice

func GetRootDevice() (string, error)

GetRootDevice returns the path to root device.

func KernelVersion

func KernelVersion() (string, error)

KernelVersion returns current kernel version.

func Mount

func Mount(device, point string) error

Mount mounts device to point.

func Reboot

func Reboot() error

func RemoveDir

func RemoveDir(ph string) error

func Umount

func Umount(point string) error

Umount unmounts device.

Types

This section is empty.

Directories

Path Synopsis
Package btrfs keeps all needed btrfs commands.
Package btrfs keeps all needed btrfs commands.
Package findmnt provides `findmnt` tool logic.
Package findmnt provides `findmnt` tool logic.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL