filelist/*.List(): print to stdout when starting to generate FileList
This commit is contained in:
@@ -23,6 +23,7 @@ func New(filePath string) *HookFiles {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h *HookFiles) List() ([]string, error) {
|
func (h *HookFiles) List() ([]string, error) {
|
||||||
|
log.Println("- Including files")
|
||||||
fileInfo, err := os.ReadDir(h.filePath)
|
fileInfo, err := os.ReadDir(h.filePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("getHookFiles: unable to read hook file dir: %w", err)
|
return nil, fmt.Errorf("getHookFiles: unable to read hook file dir: %w", err)
|
||||||
|
@@ -2,6 +2,7 @@ package hookscripts
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
@@ -20,6 +21,8 @@ func New(scriptsDir string) *HookScripts {
|
|||||||
|
|
||||||
func (h *HookScripts) List() ([]string, error) {
|
func (h *HookScripts) List() ([]string, error) {
|
||||||
files := []string{}
|
files := []string{}
|
||||||
|
log.Println("- Including hook scripts")
|
||||||
|
|
||||||
fileInfo, err := os.ReadDir(h.scriptsDir)
|
fileInfo, err := os.ReadDir(h.scriptsDir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("getHookScripts: unable to read hook script dir: %w", err)
|
return nil, fmt.Errorf("getHookScripts: unable to read hook script dir: %w", err)
|
||||||
|
@@ -26,6 +26,8 @@ func New(modules []string) *Modules {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *Modules) List() ([]string, error) {
|
func (m *Modules) List() ([]string, error) {
|
||||||
|
log.Println("- Including kernel modules")
|
||||||
|
|
||||||
kernVer, err := misc.GetKernelVersion()
|
kernVer, err := misc.GetKernelVersion()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
@@ -3,6 +3,7 @@ package osksdl
|
|||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -28,6 +29,7 @@ func (s *OskSdl) List() ([]string, error) {
|
|||||||
if !misc.Exists("/usr/bin/osk-sdl") {
|
if !misc.Exists("/usr/bin/osk-sdl") {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
log.Println("- Including osk-sdl support")
|
||||||
|
|
||||||
confFiles := []string{
|
confFiles := []string{
|
||||||
"/etc/osk.conf",
|
"/etc/osk.conf",
|
||||||
|
Reference in New Issue
Block a user