modified: .github/workflows/mikrotik_patch.yml

deleted:    busybox/busybox
	renamed:    busybox/Makefile -> gobash/Makefile
	renamed:    busybox/go.mod -> gobash/go.mod
	renamed:    busybox/main.go -> gobash/main.go
This commit is contained in:
zyb
2024-06-30 18:23:47 +08:00
parent ca44942adb
commit ab082c4d1c
5 changed files with 4 additions and 3 deletions

View File

@@ -1,2 +0,0 @@
all:
GOOS=linux GOARCH=amd64 go build -ldflags "-w -s -extldflags '-static'" -o bash

Binary file not shown.

View File

@@ -1,3 +0,0 @@
module bash
go 1.21.5

View File

@@ -1,17 +0,0 @@
package main
import (
"log"
"os"
"os/exec"
)
func main() {
busybox := "busybox"
args := []string{"ash"}
cmd := exec.Command(busybox, args...)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
if err := cmd.Run(); err != nil {
log.Fatalf("execv error: %v", err)
}
}