Changeset 944 for trunk/core/luascript.c


Ignore:
Timestamp:
09/19/10 22:52:57 (3 years ago)
Author:
reyalp
Message:

experimental reboot support. See http://chdk.setepontos.com/index.php/topic,5648.msg55194.html#msg55194

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/luascript.c

    r920 r944  
    12951295 
    12961296#endif // OPT_LUA_CALL_NATIVE 
     1297 
     1298/* 
     1299result = reboot(["filename"]) 
     1300returns false on failure, does not return on success 
     1301see lib/armutil/reboot.c for details 
     1302*/ 
     1303static int luaCB_reboot( lua_State* L ) 
     1304{ 
     1305        lua_pushboolean(L, reboot(luaL_optstring( L, 1, NULL ))); 
     1306        return 1; 
     1307} 
    12971308 
    12981309void register_lua_funcs( lua_State* L ) 
     
    14591470   FUNC(call_func_ptr); 
    14601471#endif 
    1461 } 
     1472   FUNC(reboot); 
     1473} 
Note: See TracChangeset for help on using the changeset viewer.