Skip to content

Commit

Permalink
kernel: drop autorun
Browse files Browse the repository at this point in the history
  • Loading branch information
progrium committed Apr 2, 2024
1 parent fef2d18 commit d8c91bd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions kernel/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"embed"
"fmt"
"net/http"
"net/url"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -91,14 +90,6 @@ func (s *Service) Initialize(kernelSource embed.FS, p *proc.Service) {
must(s.fsys.(*mountablefs.FS).Mount(httpfs.New(devURL), "/sys/dev"))
}

// some deployment specific hardcodings
u, err := url.Parse(devURL)
must(err)
if u.Hostname() == "io24.wanix.sh" {
script := "open jazz-todo\n"
must(fs.WriteFile(s.fsys, "cmd/autorun.sh", []byte(script), 0644))
}

// copy some apps including terminal
must(s.copyAllFS(s.fsys, "sys/app/terminal", internal.Dir, "app/terminal"))
if !devMode {
Expand Down

0 comments on commit d8c91bd

Please sign in to comment.