-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from grml/zeha/no-initscript
Move main startup script into /usr/share/grml-autoconfig/
- Loading branch information
Showing
9 changed files
with
12 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
etc/grml | ||
etc/init.d | ||
usr/bin | ||
usr/sbin | ||
usr/share/doc/grml-saveconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
# grml specific packaging | ||
grml-autoconfig: unknown-section grml | ||
grml-autoconfig: bugs-field-does-not-refer-to-debian-infrastructure mailto:[email protected] | ||
# we have our custom look'n'feel | ||
grml-autoconfig: init.d-script-does-not-source-init-functions [etc/init.d/grml-autoconfig] | ||
# we have our custom target | ||
grml-autoconfig: systemd-service-file-refers-to-unusual-wantedby-target grml-boot.target [usr/lib/systemd/system/grml-autoconfig.service] | ||
# we have no better way yet | ||
grml-autoconfig: systemd-service-file-wraps-init-script ExecStart [usr/lib/systemd/system/grml-autoconfig.service] | ||
# that's the way dhclient hook scripts are working | ||
grml-autoconfig: executable-not-elf-or-script [etc/dhcp/dhclient-exit-hooks.d/grml-sethostname] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rm_conffile /etc/init.d/grml-autoconfig 0.23.3~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,11 @@ | ||
#!/bin/zsh -f | ||
# Filename: /etc/init.d/grml-autoconfig | ||
# Filename: /usr/share/grml-autoconfig/grml-autoconfig | ||
# Purpose: basic system configuration and hardware setup for grml system | ||
# Authors: grml-team (grml.org), (c) Michael Prokop <[email protected]> | ||
# Bug-Reports: see http://grml.org/bugs/ | ||
# License: This file is licensed under the GPL v2. | ||
################################################################################ | ||
|
||
# http://wiki.debian.org/LSBInitScripts => | ||
### BEGIN INIT INFO | ||
# Provides: grml-autoconfig | ||
# Required-Start: $remote_fs | ||
# Required-Stop: $remote_fs | ||
# Should-Start: udev | ||
# Default-Start: S 2 3 4 5 | ||
# Default-Stop: | ||
### END INIT INFO | ||
|
||
# {{{ placeholder functions for restart/reload/stop | ||
if [[ $1 == "restart" ]] ; then | ||
echo "$0 restart - empty placeholder. Doing nothing but running." | ||
fi | ||
|
||
if [[ $1 == "force-reload" ]] ; then | ||
echo "$0 force-reload - empty placeholder. Doing nothing but running." | ||
fi | ||
|
||
if [[ $1 == "stop" ]] ; then | ||
echo "$0 stop - empty placeholder. Doing nothing but exiting." | ||
exit 1 | ||
fi | ||
# }}} | ||
|
||
# {{{ path, signals, umask, zsh, colors | ||
export PATH="/bin:/sbin:/usr/bin:/usr/sbin" | ||
umask 022 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ [email protected] | |
After=rc-local.service systemd-modules-load.service | ||
|
||
[Service] | ||
ExecStart=/etc/init.d/grml-autoconfig | ||
ExecStart=/usr/share/grml-autoconfig/grml-autoconfig | ||
Type=oneshot | ||
StandardInput=null | ||
StandardOutput=tty | ||
|