Added :reboot

This commit is contained in:
Anton Dyudin 2015-01-12 13:25:06 -08:00
parent 4abff4e401
commit 535ff73f20
3 changed files with 45 additions and 9 deletions

38
main/app/reboot/core.hook Normal file
View File

@ -0,0 +1,38 @@
:: Reboot %zuse and all kernel vanes
::
:::: /hook/core/reboot/app
::
/+ sh-utils
!:
::::
::
|_ [hid=hide ~]
++ peer ,_`.
++ poke--args
%^ add-output .
rush/tang/[leaf/"done"]~
%+ args-into-resp .
|= arg=~
%- turn
:_ |= [tip=@tasD nam=@tas]
=+ pax=[(scot %p our.hid) %arvo (scot %da lat.hid) nam %hoon ~]
[%veer tip pax (,@ .^(%cx pax))]
%- flop
^- (list ,[p=@tas q=@tas])
:~ [%$ %zuse]
[%a %ames]
[%c %clay]
[%d %dill]
[%e %eyre]
[%f %ford]
[%g %gall]
[%t %time]
==
++ pour
%+ gate-bang
=+ pax=/(scot %p our.hid)/=/(scot %da lat.hid)/==count/txt
=+ nuf=(file pax)
=+ num=?~(nuf 0 +((fall (slaw %ud (,@t u.nuf)) 0)))
,_[%c %info our.hid (foal pax num)] :: touch clay to reload apps
,_`.
--

View File

@ -9,11 +9,10 @@
|_ [hid=hide ~] |_ [hid=hide ~]
++ peer ,_`. ++ peer ,_`.
++ poke--args ++ poke--args
%- args-done
%^ add-output . %^ add-output .
rush/tang/[leaf/"done"]~ rush/tang/[leaf/"done"]~
|= [ost=bone you=ship all=(list ,@tas)] %+ args-into-resp .
:_ +>.$ |= all=(list ,@tas)
%+ turn (flop all) %+ turn (flop all)
=+ ark=(arch .^(%cy /(scot %p our.hid)/arvo/(scot %da lat.hid))) =+ ark=(arch .^(%cy /(scot %p our.hid)/arvo/(scot %da lat.hid)))
=+ van=(~(tap by r.ark)) =+ van=(~(tap by r.ark))
@ -27,5 +26,5 @@
`term`p.i.zaz `term`p.i.zaz
=+ tip=(end 3 1 nam) =+ tip=(end 3 1 nam)
=+ pax=[(scot %p our.hid) %arvo (scot %da lat.hid) nam %hoon ~] =+ pax=[(scot %p our.hid) %arvo (scot %da lat.hid) nam %hoon ~]
[ost %give %veer ?:(=('z' tip) %$ tip) pax (,@ .^(%cx pax))] [%veer ?:(=('z' tip) %$ tip) pax (,@ .^(%cx pax))]
-- --

View File

@ -8,10 +8,9 @@
|= [ost=bone you=ship ~] |= [ost=bone you=ship ~]
:_ +>.$ :_ +>.$
=+ top=`path`/(scot %p our.hid)/arvo/(scot %da lat.hid) =+ top=`path`/(scot %p our.hid)/arvo/(scot %da lat.hid)
=+ pax=`path`(weld top `path`[%hoon ~])
:+ [ost %give %nice ~] :+ [ost %give %nice ~]
[ost %pass / %t %wait lat.hid] [ost %pass / %t %wait lat.hid]
%- welp :_ [ost %give %vega pax]~ %- welp :_ [ost %give %vega (weld top `path`/hoon)]~
%+ turn %+ turn
%- flop %- flop
^- (list ,[p=@tas q=@tas]) ^- (list ,[p=@tas q=@tas])
@ -25,13 +24,13 @@
[%t %time] [%t %time]
== ==
|= [p=@tas q=@tas] |= [p=@tas q=@tas]
=+ pax=(weld top `path`[q ~]) =+ pax=`path`(welp top /[q])
=+ txt=((hard ,@) .^(%cx (weld pax `path`[%hoon ~]))) =+ txt=((hard ,@) .^(%cx (welp pax /hoon)))
[ost %give %veer p pax txt] [ost %give %veer p pax txt]
++ pour ++ pour
|= [ost=bone pax=path *] |= [ost=bone pax=path *]
:_ +>.$ :_ ~ :_ +>.$ :_ ~
=+ paf=/(scot %p our.hid)/main/(scot %da lat.hid)/app/reset/count/txt =+ paf=/(scot %p our.hid)/=/(scot %da lat.hid)/==count/txt
=+ nuf=(file paf) =+ nuf=(file paf)
=+ num=?~(nuf 0 +((fall (slaw %ud (,@t u.nuf)) 0))) =+ num=?~(nuf 0 +((fall (slaw %ud (,@t u.nuf)) 0)))
[ost %pass /touch %c %info our.hid (foal paf num)] [ost %pass /touch %c %info our.hid (foal paf num)]