mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
distro-files: add startnscde command
This commit is contained in:
@@ -11,4 +11,5 @@ alias grep="grep --color=auto"
|
|||||||
if [ $(tty) == "/dev/console" ]
|
if [ $(tty) == "/dev/console" ]
|
||||||
then
|
then
|
||||||
alias startwm="exec /usr/libexec/astral/startwm"
|
alias startwm="exec /usr/libexec/astral/startwm"
|
||||||
|
alias startnscde="exec /usr/libexec/astral/startnscde"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
export DISPLAY=":0"
|
||||||
|
X &
|
||||||
|
while [ 1 ]
|
||||||
|
do
|
||||||
|
if [ -S /tmp/.X11-unix/X0 ]
|
||||||
|
then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $SECONDS -gt 15 ]
|
||||||
|
then
|
||||||
|
echo timeout
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
sleep 0.5
|
||||||
|
done
|
||||||
|
stty -echo -echoctl -isig -icanon min 0 time 0
|
||||||
|
nscde &> /tmp/.nscdestderr > /tmp/.nscdestdout
|
||||||
|
stty -echo -echoctl -isig -icanon min 0 time 0
|
||||||
|
cat -
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
name=distro-files
|
name=distro-files
|
||||||
revision=2
|
revision=3
|
||||||
from_source=distro-files
|
from_source=distro-files
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
@@ -27,5 +27,7 @@ package() {
|
|||||||
chmod +x ${dest_dir}/etc/local.d/firstboot.start
|
chmod +x ${dest_dir}/etc/local.d/firstboot.start
|
||||||
chmod +x ${dest_dir}/usr/bin/astral-bootstrap
|
chmod +x ${dest_dir}/usr/bin/astral-bootstrap
|
||||||
chmod +x ${dest_dir}/usr/bin/astral-chroot
|
chmod +x ${dest_dir}/usr/bin/astral-chroot
|
||||||
|
chmod +x ${dest_dir}/usr/libexec/astral/startwm
|
||||||
|
chmod +x ${dest_dir}/usr/libexec/astral/startnscde
|
||||||
chmod +x ${dest_dir}/root/hello.sh ${dest_dir}/home/astral/hello.sh ${dest_dir}/etc/skel/hello.sh
|
chmod +x ${dest_dir}/root/hello.sh ${dest_dir}/home/astral/hello.sh ${dest_dir}/etc/skel/hello.sh
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user