Franco Fichtner
8e57dfd58c
installer: minor hiccup in setup
2018-07-04 16:23:35 +02:00
Franco Fichtner
8102296a90
importer: loop as long as mount is not successful
2018-07-04 15:40:32 +02:00
Franco Fichtner
c425bcd601
rc: whitespace issue in previous
2018-06-26 09:57:24 +02:00
Franco Fichtner
eb95e8f53e
rc: allow config import from plain MSDOS drives; closes #1372
...
For now we only import on demand, but we could make this more automatic
in the near future as this proves to be useful.
2018-06-26 09:52:52 +02:00
Franco Fichtner
185d8fab90
rc: do not leak banner.php script location
2018-06-10 20:00:23 +00:00
Franco Fichtner
4e7b97cc39
rc: small carp audit, we should merge both scripts and use $type in devd
2018-06-07 11:30:39 +02:00
Franco Fichtner
635640ce4d
rc: zfs tools are terrible for scripting
2018-05-28 09:10:20 +02:00
Franco Fichtner
3e94dd72e9
rc: zfs, zpool, confusion
2018-05-28 08:54:17 +02:00
Franco Fichtner
52d55ff5a3
rc: small tweaks
2018-05-28 08:40:57 +02:00
Franco Fichtner
426acedf52
rc: small tweak for clarity
2018-05-28 07:51:15 +02:00
Franco Fichtner
d893558687
rc: ZFS importer bits
...
For now only trigger on an explicit "zpool" input, because
otherwise we have to load ZFS earlier to probe for a particular
pool. There is no nice way to list all pools available for
input, at least not in a single, script friendly line per pool.
PR: https://github.com/opnsense/bsdinstaller/issues/12
2018-05-28 07:47:22 +02:00
Franco Fichtner
7d14f2d8ee
rc: opnsense-recover is now known as opnsense-shell #1966
...
Merge the purpose of these scripts now that we can execute other
commands using the shell menu trampoline.
2018-05-27 12:14:04 +02:00
Franco Fichtner
ac50d3e203
rc: modify the shell even more
2018-05-26 22:28:09 +02:00
Franco Fichtner
15ec336b0f
rc: parse '-c', it's passed to the shell by sudo
...
The funny thing is su -m foobar -c "sh -c '$cmd'" could be as
short as su -m foobar -s /bin/sh -c "$cmd" but why bother selecting
a shell when you need to rely on a proper root shell to be set?
2018-05-26 08:51:05 +00:00
Franco Fichtner
57148f483a
rc: remove unused variable
2018-05-20 09:11:24 +00:00
Franco Fichtner
68ac728d1f
rc: gmirror/graid import was never broken
...
Simply list the devices that are available. ;)
2018-05-19 21:04:12 +02:00
Franco Fichtner
2a14dd88ce
rc: opnsense-importer [disk] is for installer
...
This will dedup the code and make the installer lighter!
2018-05-19 18:00:04 +00:00
Franco Fichtner
d12a594608
rc: parse arguments for our shell, harmless!?
2018-05-19 17:39:58 +00:00
Franco Fichtner
ef61ac3ed7
rc: different approach for tty detection
2018-05-19 16:18:59 +02:00
Franco Fichtner
272a5b8b41
rc: rc.initital is now opnsense-shell
2018-05-19 15:23:36 +02:00
Franco Fichtner
242912aa6d
rc: increase both keypress timeouts slightly
2018-05-19 09:44:19 +02:00
Franco Fichtner
4ac26c6286
rc: merge rc.importer into opnsense-importer
...
Hooray for cleanups. Let's try to thin out the rc.* files more.
2018-05-18 23:39:33 +02:00
Franco Fichtner
655f8ea573
installer: ifconfig knows this is 127.0.0.1/8
...
While here, also register ::1 -- it's only polite.
2018-05-18 19:48:15 +02:00
Franco Fichtner
fc0c0478b5
rc: bring in additions to start the installer early again
...
People ask for this sporadically, so we should weave this back
in a way that doesn't break the ncurses view and properly sets
up loopback when needed this early.
2018-05-18 19:42:35 +02:00
Franco Fichtner
9df08987b7
rc: merge rc.installer into opnsense-installer
...
We have successfully decoupled rc.installer from other components
so now we can merge both utilities. We use opnsense-installer for
user support, which is easier to invoke and remember.
2018-05-18 19:42:34 +02:00
Franco Fichtner
00838b49ce
src: move dhclient-script to proper location
...
".ext" came to be because dhclient-script from BSD is also under sbin/,
but since we always explicity use this one just move it to a neutral
location and point to it.
2018-05-06 14:32:06 +02:00
Franco Fichtner
d13da15cb1
system: move password policy settings to local database server edit #1929
...
A few review spots and regression fixes as well.
2018-05-01 13:44:38 +00:00
Franco Fichtner
b78654eb98
system: remove authmode_fallback, allow multiple authmode #1929
...
Simplifies and alignes the code, although that is a backwards-
incompatible change that should never have happened. Still a
few things to do and extensive testing.
2018-04-29 19:00:14 +00:00
Franco Fichtner
12d161cb6d
interfaces: that's why we have named variables
2018-03-21 19:37:28 +01:00
Franco Fichtner
a458aec929
plugins: remove spurious rc.plugins_configure
...
Prodded by: @adschellevis
2018-03-20 11:05:58 +01:00
Franco Fichtner
64057c136f
interfaces: pppoe link down improvements
2018-03-04 10:43:40 +00:00
Franco Fichtner
d03799b312
interfaces: fix "route change", obsoleted a long time ago
2018-01-10 18:28:02 +01:00
Franco Fichtner
c62f01f993
dhcp: address issue found by @marjohn56
...
PR: https://github.com/opnsense/core/pull/2077
2018-01-10 18:22:36 +01:00
Franco Fichtner
493b3113ab
network time: move private script to plugin location
...
/usr/local/sbin should be reserved for real command line commands.
2017-12-15 12:46:22 +01:00
Franco Fichtner
95215828a7
openvpn: more relocations for private scripts
2017-11-22 08:56:26 +01:00
Franco Fichtner
dc353d4860
openvpn: move internal script file to plugin location
2017-11-22 08:50:54 +01:00
Franco Fichtner
f0259c86c6
plugins: add pluginctl and assorted shuffling #1841
2017-09-23 14:52:58 +02:00
Franco Fichtner
72d5e865cb
configd: make note when we are not running
...
Even if we are supposed to return well-formed output it's better
to show a hard error here so we can trace the problem to this message.
It's somewhat aligned with rc's restart message but not with a
question mark at the end so that it's clear...
2017-08-21 10:49:57 +02:00
Franco Fichtner
87e982043d
configd: don't dispatch in build environments
...
The check is a bit lax here, assume that the pid file isn't there.
It's better than invoking the rc system on every run.
2017-08-21 10:31:17 +02:00
Franco Fichtner
c5d4002541
src: add Scott's e-mail everywhere
2017-08-05 20:57:29 +02:00
Franco Fichtner
d87c6ff556
Scripts: add a license generator for GitHub
2017-08-05 20:21:35 +02:00
Franco Fichtner
1146fb24c3
interfaces: error is handled, no need for crash report
2017-05-03 14:39:07 +02:00
Franco Fichtner
e91951537a
openvpn: merge into plugin
2017-03-11 19:24:34 +01:00
Franco Fichtner
fedfd0a4a8
rc: recursion is bad ;)
2017-03-01 06:38:00 +01:00
Franco Fichtner
c4ec7689e8
rc: allow use of importer anytime, add conveniance aliases
2017-03-01 06:30:32 +01:00
Franco Fichtner
f494289929
interfaces: reshape the ppp-linkdown script #1403
2017-02-16 08:26:42 +01:00
Ad Schellevis
cc05a97726
(pam) for non local users trigger different exit code (user doesn't exist)
2016-12-18 17:47:01 +01:00
Franco Fichtner
34604d5a71
dhcp: crash report and stray array_shift() for prefixes.php
2016-10-11 18:02:57 +02:00
Franco Fichtner
4e16a07515
auth: parse for "\0", allow empty password for #998
2016-09-16 16:55:02 +02:00
Ad Schellevis
b90babbfd2
add opnsense-auth helper for pam support, https://github.com/opnsense/core/issues/998
2016-09-12 20:38:48 +02:00