📄 delete_action.cgi
字号:
#!/usr/local/bin/perl# delete_action.cgi# Delete an existing action and remove it from all the runlevelsrequire './init-lib.pl';&ReadParse;%access = &get_module_acl();$access{'bootup'} || &error($text{'save_ecannot'});if ($in{type} == 0) { # Deleting a normal action foreach (&action_levels('S', $in{action})) { /^(\S+)\s+(\S+)\s+(\S+)$/; &delete_rl_action($in{action}, $1, 'S'); } foreach (&action_levels('K', $in{action})) { /^(\S+)\s+(\S+)\s+(\S+)$/; &delete_rl_action($in{action}, $1, 'K'); } unlink(&action_filename($in{action})); }elsif ($in{type} == 1) { # deleting an odd action unlink(&runlevel_filename($in{runlevel}, $in{startstop}, $in{number}, $in{action})); }&redirect("");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -