Code Monkey home page Code Monkey logo

core-scripts's People

Contributors

alphons avatar aswjh avatar bdantas avatar clbr avatar juanitotc avatar paul-1 avatar polikuo avatar rarost avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

core-scripts's Issues

/opt/shutdown.sh not executed during shutdown

Hi

I use TCL to run a pair of Minecraft servers for my son and I, and noticed that there was a script in /opt that I could add shutdown commands to, however when I tried to do this to send shutdown commands to my Minecraft server instances and wait for them to quit, the script wasn't executed at all. When I checked the /etc/init.d/rc.shutdown script, I noticed that it doesn't call this script at all.

init script Clarification

My understanding is that initrd is a gzipped cpio that the kernel loads into ram.
However here:

Core-scripts/init

Lines 6 to 16 in f9f48e9

inodes=`grep MemFree /proc/meminfo | awk '{printf("%d\n", $2/3)}'`
mount / -o remount,size=90%,nr_inodes=$inodes
umount proc
exec /sbin/init
fi
umount proc
if mount -t tmpfs -o size=90% tmpfs /mnt; then
if tar -C / --exclude=mnt -cf - . | tar -C /mnt/ -xf - ; then
mkdir /mnt/mnt
exec /sbin/switch_root mnt /sbin/init

I see that tinycore redoes this operation again, by copying itself into ram, is there any reason why that's done? I don't understand and I couldn't find why this was done in the book. The only hint I can take is the 90% size but I couldn't find reference in the man to that either.

Thank you,
Marin

Verification and retry in tce-load download.

I tried to load packages at boot time over Internet from a customized repo and got a few issues.

  1. The repo server does not reply HTTP 404 if a .dep was not found. Hence tce-load takes it as a .dep and tries to download a bunch of non-sense-s.
  2. Since it is Internet, some long time download may get interrupted. And tce-load just skip it. This makes attending-less booting impossible.

Changes in busybox 1.34

I try to keep up with upcoming changes in busybox, so new releases don't get out of hand. One change is

awk: disallow break/continue outside of loops
https://git.busybox.net/busybox/commit/?h=1_34_stable&id=d3480dd58211d9d8c06ec7ef00089262603003ff

This breaks at least https://github.com/tinycorelinux/Core-scripts/blob/master/usr/bin/select, perhaps others I've not found yet.


I'm not the best awk coder, but would using return instead of break be correct for these two lines?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.